|
|
 |
RE: FN-FORUM: FW: Could be a CSS thing?
date posted 17th May 2006 19:17
According to http://www.w3.org/TR/html4/struct/global.html#h-7.5.4
7.5.4 Grouping elements: the DIV and SPAN elements
The DIV and SPAN elements, in conjunction with the id and class
attributes, offer a generic mechanism for adding structure to documents.
These elements define content to be inline (SPAN) or block-level (DIV)
but impose no other presentational idioms on the content. Thus, authors
may use these elements in conjunction with style sheets, the lang
attribute, etc., to tailor HTML to their own needs and tastes=20
Visual user agents generally place a line break before and after DIV
elements, for instance:
aaaaaaaaabbbbbbbbbcccccccccc
which is typically rendered as:
aaaaaaaaa
bbbbbbbbb
ccccc
ccccc
HTH
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of
Anthony Cartmell
Sent: Wednesday, May 17, 2006 6:38 PM
To: Andy Macnaughton-Jones
Subject: Re: FN-FORUM: FW: Could be a CSS thing?
> I never said that
> divs should be inside each other, but if you position anything inside=20
> a div it should be with a SPAN, as I said before a span is an empty=20
> unknown object to the browser, a div by default is known and with=20
> inherit properties from it's parent.
Eh?
The difference between a div and a span is that, unless otherwise
styled, a div is a block element and a span is an inline element. They
both inherit CSS properties the same.
Anthony
--
www.fonant.com - hand-crafted web sites
--
Freelancers, contractors earn more with Prosperity4 Call 0870 870 4414
or visit www.prosperity4.com and benefit from Inland Revenue approved
expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|