HTML and CSS Reference
In-Depth Information
Well, then how do we
specify the width of the
entire element?
You don't. You specify the width of the content area,
the padding, the border, and the margin. All of that
added together is the width of the entire element.
Say you set the content area width to be 300 pixels using the width property
in a CSS rule.
And let's say you've set the margins to 20 pixels and the padding to 10 pixels, and you
have a 1-pixel border. What's the width of your element's box? Well, it's the width of
the content area added to the width of the left and right margins, the left and right
padding, and the left and right border width. Let' see how to calculate that…
Our guarantee: at the lounge, we're
committed to providing you, our guest,
with an exceptional experience every
time you visit. Whether you're just
stopping by to check in on email over
an elixir, or are here for an out-of-
the-ordinary dinner, you'll find our
knowledgeable service staff pay attention
to every detail. If you're not fully satisfied
have a Blueberry Bliss Elixir on us.
Search WWH ::

Custom Search