Jump to content

Aligning a JavaScript and DHTML Menu


imrie

Recommended Posts

Hello,I have a JavaScript and DHTML Menu, and when i enter the code on to the webpage it automatically aligns to the left and i need it in the middle, what is the code?Thanks,

Link to comment
Share on other sites

Well, just make it put <div style="text-align:center; margin:auto; "> </div> around the menu...

Link to comment
Share on other sites

Yes, give the div a bit of padding to the right, as in <div style="text-align:center; margin:auto; padding-right:5px; "> </div> will shift it 5px to the left of center.But did my previous code work?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...