Previous Message
Next Message

Container???

Sent by Steve Clay on 18 February 2004 14:02


Saturday, February 14, 2004, 12:19:30 PM, [EMAIL-REMOVED] wrote:
dcn> What actually is a container...

Generally a container is an element in the markup that "contains" your
element of interest (is its direct parent):

<blockquote><!-- BLOCKQUOTE is a container of P -->
  <p>paragraph</p>
</blockquote>

A container is useful in CSS because it gives you another target for styles
and background-images.  If your document is well-structured, you may be
able to get all your styling done without adding containers, but, if
someone suggests "adding a container", usually they mean giving the element
your trying to style a parent DIV or SPAN (depending if you're containing
block or inline elements).  The HTML spec describes this:
http://www.w3.org/TR/html401/struct/global.html#edef-DIV

HTH,
Steve
-- 
http://mrclay.org/ * http://frenchhorns.mrclay.org/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message