24.08.2016 Views

HTML and CSS design and build websites

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

At the beginning of this section on <strong>CSS</strong>,<br />

you saw how <strong>CSS</strong> treats each <strong>HTML</strong><br />

element as if it lives in its own box.<br />

You can set several properties that affect the appearance of<br />

these boxes. In this chapter you will see how to:<br />

●●<br />

●●<br />

●●<br />

●●<br />

Control the dimensions of your boxes<br />

Create borders around boxes<br />

Set margins <strong>and</strong> padding for boxes<br />

Show <strong>and</strong> hide boxes<br />

Once you have learned how to control the appearance of each<br />

box, you will see how to position these boxes on your pages in<br />

Chapter 15 when we look at page layout.<br />

301 BOXES

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!