Morsusy2k Posted January 7, 2013 Share Posted January 7, 2013 Okay so Ive got simple multiline navbar that looks like this atm:I 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 More sharing options...
Morsusy2k Posted January 9, 2013 Author Share Posted January 9, 2013 Bump? Link to comment Share on other sites More sharing options...
Labtec Posted January 9, 2013 Share Posted January 9, 2013 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 More sharing options...
Morsusy2k Posted January 9, 2013 Author Share Posted January 9, 2013 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 More sharing options...
Labtec Posted January 9, 2013 Share Posted January 9, 2013 No problem just remember; http://getfirebug.com/ should be your best friend Glad you got it working. Regards, Lab. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now