Jump to content

aligning tab menu to left or centering


sw45acp

Recommended Posts

Hi, I wish to align my tab menu all the way to the left or center it. It aligns fine to the right fine with no extra space, but on the left it leaves extra space. I'm happy with it so far, but I just can't seem to figure this one out. It is not a float left menu, either.

 

Here is a link to the page where the tabs are on so it can be seen.

 

Here is my css:

body {
margin:0px;
padding:0px;
font-family:Tahoma, Geneva, sans-serif;
background-color:#000000;
}
ul.menu_tabbed {
margin:10px 0px 0px 0px;
list-style-type:none;
border-bottom:2px solid #0F0;
padding-bottom: 1px;
text-align:left;
}	
ul.menu_tabbed li {
display:inline;
}	
ul.menu_tabbed li a:link, ul.menu_tabbed li a:active, ul.menu_tabbed li a:visited  {
color:#09F;
text-decoration: none;
background: #000000;
border: 1px #CCCCCC solid;
border-bottom: none;
padding: 3px 14px 1px 14px;
}	
ul.menu_tabbed li a.selected {
color:#C60;
background:#000;
border: 1px #999999 solid;
border-bottom: 1px #000000 solid;
padding: 7px 14px 2px 14px;	
}	
ul.menu_tabbed li a:hover {
color:#09F;
text-decoration:underline;
padding: 7px 14px 2px 14px;	
}

 

And my html:

<ul class="menu_tabbed">
        <li><a href="#">Home</a></li>
        <li><a href="#">Preferences</a></li>
        <li><a href="#" class="selected">Search Transactions</a></li>
        <li><a href="#">Add Transaction</a></li>
        <li><a href="#">Logout</a></li>
      </ul>

 

I appreciate any help offered.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.