PDA

View Full Version : help with using the same div over and over again


LJackson
07-29-2008, 12:00 AM
Hi All,

i've just bin told that my page has 54 validation errors and alot of them seem to relate to my divs that i have used several times over,

therefor i have used the same div 6 times, i defined the div in my stylesheet as #indexpicsheaders,

should it be .indexpicsheaders to enable it to be used several times?

soz quite new to all this lol

any help would be appreciated
cheers
Luke

Apostropartheid
07-29-2008, 12:01 AM
Basically, yes. An ID has to be unique.

LJackson
07-29-2008, 12:06 AM
right thats where ive been going wrong :(

thank you
Luke

masterofollies
07-29-2008, 02:35 AM
Yeah it can be used as much as you want, which I use on my website a hundred times over. Which have to put the correct syntax in it.

LJackson
07-29-2008, 02:53 AM
brill, thanks :)

Just re-done my page using classes and ID and i revalidated it and have 0 errors Sweet!!!!! lol

thanks guys n girls :)
Luke