Rollover buttons stacking vertically instead of horizontally
-
Hello,
I have horizontal rows of buttons on my site which are images. I’m using the following code to give the buttons a rollover effect. The problem is that when I insert this code, the buttons no longer stay in rows: they stack on top of each other vertically. I imagine the solution is fairly simple, but I’ve been unable to figure it out.
CSS:
a.rollover { display: block; width: 188px; height: 60px; text-decoration: none; background: url("https://www.site.com/images/archive.jpg"); } a.rollover:hover { background-position: -188px 0; } .displace { position: absolute; left: -5000px; }
HTML:
<a href="https://www.site.com/?page_id=42" class="rollover" title="archive" rel="nofollow"><span class="displace">archive</span></a>
Thanks in advance for any suggestions. : )
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Rollover buttons stacking vertically instead of horizontally’ is closed to new replies.