<DIVs> are like alchohol... they have a tendency to be overused, and often the very people who abuse them are completely unware of the negative effects. Web Standards/Accessibility is probably not the best argument against using DIVS. Here is an article that will answer many of your questions:
http://www.juicystudio.com/article/div-mania.php DIV-MANIA!

As for your problem with h1,h2,h3,h4 tags, there is a very simple one-shot-one-kill solution:
1. Clear all of your header's margins (i.e. h1 {margin:0;} )
2. Now space your headers using padding (i.e. h1 {padding:15px 0 15px 0;margin:0;})

Consider the example I shared applicable to nearly every situation where explorer and firefox disagree. This is your first line of defense against most IE 6 bugs. Take it, treasure it, and share it.

Onward,
Nick Lewis
http://nicklewis.smartcampaigns.com


From: "victor NOAGBODJI" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, July 14, 2005 6:01 AM
Subject: [css-d] using of DIVs


Hello,
AFAIK, DIVs are to section a page (maybe I'm wrong, as i'm still a beginner). When learning CSS I use to write things like this:
<div id="title">My Title</div>

One day, I has been told that this is bad, according to web standard accessibility (or something like that) so I was told to do this:
<h1 id="title">My Title</h1>

Now I realise that using the later give me more problems. Because when it's a Div you have to set many attributes. Whereas h1,h2,h3....predifined tags have different preset attributes, that varies even with browsers.
What's do you think of this?
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/

Reply via email to