Preserved Topic: div for dummies |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: soon to be "the land down under" |
posted 02-28-2002 07:24
I was wondering if anyone could explain the div tag to me. So far, I know you can use the align option with it and that you can use it with CSS. I assume the code would just be: |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 02-28-2002 08:09 |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-28-2002 14:50
The advantage is that it doesn't come with any pre-defined look about it except that it's "block level" (which sorta means it creates an automatic line break at the beginning and end to separate it from everything else), so you can use it when you want to use CSS to define the way a block-level element looks from scratch. |
Bipolar (III) Inmate From: Small Patch of Grass in CT |
posted 02-28-2002 23:17
Im kind of wondering the same thing. I want to know how to use those. Can't you use them for an alternative to tables? Does anyone have links to some good tutes on this topic? |
Maniac (V) Inmate From: soon to be "the land down under" |
posted 03-01-2002 02:41
Thanks guys. Now the follow up question is: what's span? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 03-01-2002 02:54
A span is the same thing as a Div except that it's inline instead of block-level. =) |
Maniac (V) Inmate From: soon to be "the land down under" |
posted 03-01-2002 08:54
Ahh, I see. code: <div class="blue">
|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 03-01-2002 16:05 |