Irish SEO,  Marketing & Webmaster Discussion
 
Chitika Malls
 

Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help > HTML Basics


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-08-2008, 10:16 AM
Frontpage User
 
Join Date: Jul 2008
Posts: 8
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
  #2 (permalink)  
Old 06-08-2008, 10:27 AM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 1,923
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

yes indeed all id's has to be unique on the page and style can be set inside the CSS file starting with the #id_name sign.
if you need to use the same style more then once on the same page you can create classes, referenced inside the CSS file with a .class_name.

in you case there (the text file) the #infoboxleft has the same style as the #infoboxright, so you can convert that into one class .side_box_holder and same with the other ones that goes inside it. (e.g. .titlebox, .imagebox)
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Reply With Quote
  #3 (permalink)  
Old 06-08-2008, 10:34 AM
Frontpage User
 
Join Date: Jul 2008
Posts: 8
damoth will become famous soon enough
Default

Excellent, thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Same design template but unique content? swantlers Google 9 31-07-2008 05:28 PM
Duplicate Content - 2 Unique Domains gav240z Search Engine Optimisation 6 28-02-2008 07:51 PM
18 unique website ideas.. smemon Webmaster Discussion 5 02-09-2007 06:35 PM
IP adresses, unique / shared paul Webmaster Discussion 3 24-03-2007 02:44 AM


All times are GMT +1. The time now is 04:25 AM.


Powered by: vBulletin Version 3.7.2, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.

Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56