CSS Styling Images


  1. Which should be used to overlay text on image with high contrast?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    To overlay text on an image with high contrast, we can place a semi-transparent background color or “screen” behind the text to improve legibility. The majority of photographs have quite high contrast, that means they are not ideal for use as background image.


  1. Which of the property is not used for positioning columns next to each other?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Many web pages used multiple columns in their design. The three CSS properties are used to position columns next to each other. Width, margin, and float. Width sets the width of the column, float positions columns next to each other, margin creates a gap between columns.



  1. Which of the following is not the value for background-repeat property?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Background-repeat property can have four values i.e. repeat, repeat-x, repeat-y and no -repeat. The background image is repeated both horizontally and vertically by setting the value repeat, repeat-x repeats the image horizontally only.


  1. Which of the following will move the image up and down?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The background image moves up and down as the user scrolls up and down the page. The fixed value helps background image stays in the same position on the page.



  1. Which value clear property can’t take?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The clear property allows us to say that no element within the same containing element should touch left or right hand sides of a box. It can take the values left, right, both or none. When set to none elements can touch either side.