Sent by Paul Novitski on 31 January 2005 23:11
At 02:29 PM 1/31/2005, keith wrote:
>i wonder if anyone could tell me what a wrapper is, i tried to work it out
>from some of the emails,but i am still non the wiser.
Keith,
I'll be interested to see the variety of responses you get to this
question. Here's my take on it:
A wrapper is an element, commonly a div, that encloses one or more other
elements in the HTML markup, e.g.:
<div id="wrap">
<h1>Headline</h1>
<p>Paragraph</p>
<p>Paragraph</p>
</div>
The purposes of wrappers are several, including:
- to group elements semantically, for instance to separate page heading
from body text from sidebar from footer.
- to group elements cosmetically, such as with a surrounding border or a
common background image or color.
- to group elements in layout, such as to keep them all in the same column
when columns are floated next to one another.
- to enable special positioning, as when a wrapper is given relative
positioning in order to contain child elements with absolute positioning.
Some special effects require several nested wrappers, such as when a box is
given rounded corners.
Paul
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/