I have a simple GIF, I'm trying to use as navigation buttons for my page. In the past I've gone the horrid route of making 2 images per button and doing a javascript rollover... now I'm learning CSS and trying to switch to this, but I'm having the following problems.
All my divs are taking up as much space as they choose, namely one line... I want to have as many in a row as will fit on the page. I suppose I can stuff them into table cells, but that seems silly to me since I know CSS lets me do positioning.
I can't size the image how I want, it's getting set to a certain size and I'm not allowed to modify it.
I'm basically trying this with no luck. I'll keep tinkering, but if anyone could help me out I'd appreciate it.
All my divs are taking up as much space as they choose, namely one line... I want to have as many in a row as will fit on the page. I suppose I can stuff them into table cells, but that seems silly to me since I know CSS lets me do positioning.
I can't size the image how I want, it's getting set to a certain size and I'm not allowed to modify it.
I'm basically trying this with no luck. I'll keep tinkering, but if anyone could help me out I'd appreciate it.
Code:
.button {
width=100px;
height=60px;
background-image: url("../images/button_template.gif");
text-align: center;
background-repeat: no-repeat;
}
.button a:visited, .button a:link {
color: #FFFFFF;
text-decoration: none;
}
.button a:hover {
color: red;
text-decoration: none;
}