imrie Posted August 3, 2007 Share Posted August 3, 2007 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 More sharing options...
Synook Posted August 3, 2007 Share Posted August 3, 2007 Well, just make it put <div style="text-align:center; margin:auto; "> </div> around the menu... Link to comment Share on other sites More sharing options...
imrie Posted August 3, 2007 Author Share Posted August 3, 2007 Is it possible to use this rule to custom align to where you want it. Because i need it just a bit more to left, than centre. Link to comment Share on other sites More sharing options...
Synook Posted August 3, 2007 Share Posted August 3, 2007 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 More sharing options...
imrie Posted August 3, 2007 Author Share Posted August 3, 2007 Yes, the code worked.Thanks for your help. Link to comment Share on other sites More sharing options...
imrie Posted August 3, 2007 Author Share Posted August 3, 2007 And the seconed code worked, thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.