ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions
1 mark · CSS appearance and positioning
An image is to be displayed on a web page as shown below. 15 pixels 15 15 pixels pixels 15 pixels The HTML code below is used to display the image. … <div> <img src="dog.jpg"> </div> … Complete the first line of code in the CSS rule below to implement the correct spacing. div { ; width: 250px; width: 250px; background-color: lightgrey; border:2px solid; }
• padding: 15(px) Can also be padding 15 15 15 15
Previous question: Higher Computing Science 2025 Question 15