HokieTracks Posted April 20, 2009 Share Posted April 20, 2009 Hi, I am trying to create a horizontal menu with div classes. Here is my div class code: .menucontainer { width:109px; } .menu a { width:109px; background: url("http://hokietracks.com/home/images/blank.jpg") no-repeat; padding-top: 10px; padding-bottom: 10px; font: 13px Arial, sans-serif; font-weight: bold; text-decoration: none; text-align: center} .menu a:hover { width:109px; height:36px; background: url("http://hokietracks.com/home/images/blank2.jpg") no-repeat; text-decoration: none; } But all I end up with is this: Quote Link to comment Share on other sites More sharing options...
mimintweak Posted April 20, 2009 Share Posted April 20, 2009 I think .menucontainer width should be 654px to hold 6x109px, try it and see if that works Quote Link to comment Share on other sites More sharing options...
HokieTracks Posted April 20, 2009 Author Share Posted April 20, 2009 No, that didn't do it. Same results as before. Quote Link to comment Share on other sites More sharing options...
Axeia Posted April 21, 2009 Share Posted April 21, 2009 Umm, what exactly is wrong with? Looks like a horizontal menu to me.. Quote Link to comment Share on other sites More sharing options...
FaT3oYCG Posted April 21, 2009 Share Posted April 21, 2009 replace padding-top: 10px; padding-bottom: 10px; with padding: 10px 10px 10px 10px; Quote Link to comment Share on other sites More sharing options...
HokieTracks Posted April 21, 2009 Author Share Posted April 21, 2009 I figured this out on my own. Thanks for the help though! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.