472,121 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

CSS hover: sepcifying color without background?

Hi there,

I have an HTML page with one large background image in the left corner.
I've got various links positioned randomly on the image, and I use <span>
tags to display text on another section of the page when hovering over the
links. Here's an example of the code:

<title>My Title</title>
<style type="text/css">
a#link1 {font: bold 1em sans-serif; text-decoration: none; color: #000080;
position: absolute; top: 1px; left: 4px }
a#link1:hover {color: #411; background: FFFFFF}

a#link1 span {display: none}
a#link1:hover span {display: block;
position: absolute; top: 275px; left: 600; width: 300px;
padding: 5px; margin: 10px; z-index: 100;
color: black;
font: 10px Verdana; text-align: center;}

<body >
<div align="left">
<p><img src="image.jpg" width="600" height="400">
<a id="link1" href="URL"> My Link <span> The text that goes with My Link

My problem is that I don't want the link itself to have a background color
specified on the hover (This line: "a#link1:hover {color: #411; background:
FFFFFF}"). The background image is multi-colored, so it looks strange. But
without it...the text in the <span> tags will not appear. Does anyone have
any suggestions?

Thanks in advance,

Jul 20 '05 #1
1 3074
In post <81*********************@ursa-nb00s0.nbnet.nb.ca>
Shannon said...
My problem is that I don't want the link itself to have a background color


brucie a. blackford. 27/July/2003 08:17:44 am kilo.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Nikolaos Giannopoulos | last post: by
3 posts views Thread by Gnolen | last post: by
51 posts views Thread by madsgormlarsen | last post: by
2 posts views Thread by skipc | last post: by
5 posts views Thread by Gerry Vandermaesen | last post: by
1 post views Thread by darkzone | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.