Jump to content

[SOLVED] Div Class Width Will Not Work


HokieTracks

Recommended Posts

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:

 

menuexample.jpg

Link to comment
https://forums.phpfreaks.com/topic/154935-solved-div-class-width-will-not-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.