Thursday, November 24, 2011

How can I make a Dreamweaver spry horizontal menu bar sit central on the page?

I couldn't figure a way so I ended up putting it in a table and aligning that central but I don't think its how its supposed to be done. I'm a total novice to all of it but I managed to bash together a sort of site





www.petepower.co.uk





All pointers gratefully received|||Set the menu in a div and set the div to the exact width needed to contain the menu. Then center with:





margin: 0 auto;





CSS example:





#menu {


width: XXXpx;


height: YYpx;


margin: 0 auto;


}





HTML example:





%26lt;div id="menu"%26gt; menu code here %26lt;/div%26gt;





Ron|||You're welcome. Thank you for BA.





Ron

Report Abuse

No comments:

Post a Comment