MyBB Community Forums

Full Version: Center my <ul id ="nav"> one post is good enough STFU
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok so look. Please no one respond with <center></center> or anything like that. I accidentley uploaded an old xml file and reverted back to original code. I found a code on the web that worked the first time but now i cant find it.... So im trying to center my navbar. Heres my current code..

<!-- begin navbar -->
	
		<div id="navbar">
                 <ul id="nav">

			
                        <li><a href="{$mybb->settings['bburl']}/About.php" >About</a></li>
                        <li><a href="{$mybb->settings['bburl']}/Artists.php" >Artists</a></li>
                       
			<li><a href="{$mybb->settings['bburl']}/Beats.php">Beats</a></li>
                        <li><a href="{$mybb->settings['bburl']}/DrumKits.php">Drum Kits</a></li> 
                        <li><a href="{$mybb->settings['bburl']}/shops.php">Store</a></li>
                        <li><a href="{$mybb->settings['bburl']}/Videos.php">Videos</a></li> 


	</div></br>
	<!-- end navbar -->




Ok so the code that worked looked something like this Below

<ul id="nav" left:150px; right:50px; text-allign:center;>



Can someone post the correct code for this please. i cant find it on the internet. it worked for me the first time i just adjusted the numbers to 400px etc...

anyone have any answers please ? 41 views and not one reply Sad
how about you learn how to be patient?

You tell me to STFU - then that means you dont need help huh?
Yes. <snip> I don't need your help. I figured it out on my own.





<ul id="nav" style="position: relative; left: 250px; right: 50px;">



Solved my issue for centering the <ul id="nav">