Zandorian Posted March 16, 2006 Share Posted March 16, 2006 I have a black strip, a "div" object that is.... And I have text in it.. I want to use it as a menu, but the text in it is staying up to the top border, how do I center it vertically? Link to comment Share on other sites More sharing options...
scott100 Posted March 16, 2006 Share Posted March 16, 2006 For a menu i would normally set it's padding, example here: http://www.w3schools.com/css/tryit.asp?fil...=trycss_padding Link to comment Share on other sites More sharing options...
Zandorian Posted March 16, 2006 Author Share Posted March 16, 2006 For a menu i would normally set it's padding, example here: http://www.w3schools.com/css/tryit.asp?fil...=trycss_padding<{POST_SNAPBACK}> Thats not working.... the text stays the same the strip gets bigger. Link to comment Share on other sites More sharing options...
Zandorian Posted March 16, 2006 Author Share Posted March 16, 2006 nmi got it, i had the height set Link to comment Share on other sites More sharing options...
Zandorian Posted March 16, 2006 Author Share Posted March 16, 2006 now I have a new prob... the text in the nav bar won't "justify".... I want it to be even...any ideas? Link to comment Share on other sites More sharing options...
Xenon Design Posted March 16, 2006 Share Posted March 16, 2006 Can u show us some code? It will tell us what your dealing with. Link to comment Share on other sites More sharing options...
Zandorian Posted March 16, 2006 Author Share Posted March 16, 2006 Can u show us some code? It will tell us what your dealing with.<{POST_SNAPBACK}> this is the body of the html:<body><div class="head">Company logo</div><br /><br /><div class="mainmen"><div class="mainlinks"><a href="http://www.google.com">Products & Solutions</a> Suppliers Company Info Contact us</div></div></body>this is the stylesheet:body{font-family:Verdana, Arial, Helvetica, sans-serif;background-color:#FFFFFF;font-size:12px;color:#666666;margin:0;}a{color:#666666;text-decoration:none;}a:hover{text-decoration:underline;color:#CCFFCC;}.head{color:#FF6600;font-size:18px;float:right;margin-right:150px;margin-top:20px;}.mainmen{background-color:#CCCCCC;margin-top:25px;margin-left:150px;margin-right:150px;font-weight:lighter;padding:.1cm;text-align:justify} 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