Jump to content

Multi-line navbar align


Morsusy2k

Recommended Posts

Okay so Ive got simple multiline navbar that looks like this atm:aaavs.jpgI would like to center it vertically but i just fail :S This is the CSS:

.navholder{float:right;}#item1,#item2,#item3,#item4,#item5{float: left;display:inline-block;width: 80px;font-family:"Trebuchet MS", Helvetica, sans-serif;text-shadow: 0px 1px 1px #4d4d4d;font-size: 14px;color:black;text-align: center;height: 104.5px;border:0px;}

Link to comment
Share on other sites

Try putting:

.navholder{float: right;text-align: center;}

Post your HTML too and I'll be able to give you a more accurate answer. Regards, Lab.

Link to comment
Share on other sites

I managed to do it :DThanks anyways :)

.navholder{float:right;display: table;}#item1,#item2,#item3,#item4,#item5{width: 80px;font-family:"Trebuchet MS", Helvetica, sans-serif;text-shadow: 0px 1px 1px #4d4d4d;font-size: 14px;color:black;text-align: center;height: 100px;border:0px;vertical-align: middle;}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...