ExamBank Scot · AH Computing Science question bank · All AH Computing Science questions
2 marks · CSS media queries
The CSS code used to display images on a website is shown below. img { width: 50%; } @media only screen and (max-width:767px) { img { width: 100%; } } Explain the effect of this CSS code when displaying website content.
On screens with a display of 767 pixels or less, images will be displayed with a width of 100%; on all other screen widths, images will be displayed with a width of 50%. Award 1 mark for explanation of the max-width Award 1 mark for explanation of how images will be displayed