Click to See Complete Forum and Search --> : Where can I learn all about div and span attributes?


mgdpublic
12-11-2003, 09:28 AM
Whenever I see CSS tutorials, they invariably speak in terms of whole style sheets rather than just modifying a line or two. Is the <div> command considered html or CSS? How come sometimes it seems like you would say align="left" and sometimes "text-align: left;" ?

Robert Wellock
12-11-2003, 09:42 AM
The division is generic (x)html: http://www.xhtmlcoder.com/xhtml.htm the "text-align: left;" is CSS.

ray326
12-11-2003, 11:06 AM
Originally posted by mgdpublic
Whenever I see CSS tutorials, they invariably speak in terms of whole style sheets rather than just modifying a line or two. Is the <div> command considered html or CSS? How come sometimes it seems like you would say align="left" and sometimes "text-align: left;" ?
<div> is a tag so it's HTML. It can have styles applied to it and those are CSS. align="left" is a presentation-related attribute of the tag, which I suspect is deprecated for the style rule, style="text-align:left".

mgdpublic
12-12-2003, 08:52 AM
Originally posted by ray326
<div> is a tag so it's HTML. It can have styles applied to it and those are CSS. align="left" is a presentation-related attribute of the tag, which I suspect is deprecated for the style rule, style="text-align:left".

So if i'm gonna learn one thing it should be syntax for styles?

pyro
12-12-2003, 10:01 AM
Yes, learn CSS.