Using the same <div> twice?

Soldato
Joined
26 Feb 2004
Posts
4,800
Location
Hampshire, England.
Hey guys,

I appear to get errors on my site when using the HTML validator on the W3 because I use the same div more than once?

The div I’ve created is a box for holding site news articles, so I may need to repeat them up to six times – should I just rename the div’s –

I.e. news_art_1, news_art_2, news_art_3 etc?

Atm, I’m just stacking multiple news_art divs on top of each other – which views great in all the browsers I’ve tested with, but gives me errors :(

Any ideas?

Cheers,

SW.
 
Okay, so #news_art {} would become a class - a.news_art {}

And in my HTML:

<div class="news_art"></div>

Is that about the size of it :p

I really should start trying thing out for myself before posting :D

Thanks.

SW.
 
Back
Top Bottom