Thread: Unique Div ids

View Single Post

  #1 (permalink)  
Old 06-08-2008, 10:16 AM
damoth damoth is offline
Frontpage User
 
Join Date: Jul 2008
Posts: 21
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
damoth will become famous soon enough
Default Unique Div ids

Hi guys,

I'm working on my first site and am learning as i go...

I had my index pages for different sections layed out using tables but have tried switching them to layers. They seem to be working fine but i have read that div ids should be unique.

To keep things short i declared them in my css file and reused the same ones to create whatever amount of boxes i want. See here (8) and here (4).

As i'm learning as i go i want to try keep to HTML and CSS at first so i have a good understanding of that before moving on to use JavaScript and finally converting sections of the site to PHP or ASP.

So... do i have to declare all boxes seperately in my css (my max will be 8) with unique ids or is there a quicker way using HMTL/CSS. I'm also reusing 3 other css boxes inside each big box to split them up into sections.

I've attached a text file showing what i am using.

Thanks,

damoth
Attached Files
File Type: txt html and css.txt (1.6 KB, 5 views)
Reply With Quote