Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CSS and placing images on the page: You can use the clear style property to \"pu

ID: 3788234 • Letter: C

Question

CSS and placing images on the page: You can use the clear style property to "push down" an entry until the margin is clear. For example, will force a paragraph downward on the page until the margin at the right is clear. Similarly, will force the paragraph downward until the left margin is clear. Do not forget about the float property for images. Be sure to determine the intrinsic ("natural") size of the images and include all the required attributes for your tag. Each picture should have a one- or two-sentence text description such as you would find in a catalog. The text for the left aligned images should be left aligned as well. The text for the right aligned image should be right aligned as well.

Explanation / Answer

<!DOCTYPE html>
<html>
<body>

<h2>Mountains</h2>
<div><img src="pic_mountain.jpg" alt="Mountain View"></div>
<div><img src="pic_mountain.jpg" alt="Mountain View"></div>
<div><img src="pic_mountain.jpg" alt="Mountain View"></div>
</body>
</html>