View Single Post
Old 11-29-2011, 04:10 PM   PM User | #7
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Quote:
Originally Posted by kimmi_baby View Post

Do I need to rewrite all of it for the ID to work?
Each page will need a unique id. That should be the only change needed to your markup for this to work.

The beauty of this is there is no change made to the menu itself from page to page, you target the anchor from body id.
That makes it possible to use an include for your menu, something that you'll really appreciate later!
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote