D
David Smithz
Don't quite know what you mean here. However I think I have solved it usingIE wants a background color for this to work as intended.
[snip]
Jonathans approach (See other postings).
Cheers
Don't quite know what you mean here. However I think I have solved it usingIE wants a background color for this to work as intended.
[snip]
strict doctype, work even in IE and no JavaScript
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Boxed Link</title>
<style type="text/css">
A.boxed{ display: block; width: 15em; padding: 5em 0 0 0;
background-color: #eee; text-align: right; }
A:hover.boxed{ background-color: #ff0; }
</style>
</head>
<body>
<div>Here is one way <a href="#" class="boxed">Lower Right</a></div>
</body>
</html>
David said:in message
Well! This certainly is a lot less code then I produced. And so far it seems
to work perfectly. I have today ordered myself the CSS o'reailly definitive
guide as a result of these postings to give myself a better grounded
understanding.
I have not yet managed to incorporate into the website I'm working on but in
theory it looks excellent and a whole lot simpler.
I hope there are no caveats.
David said:in message
[snip]
Thanks to your code example I have taken it quite far and even managed to
right align an image in the anchor link as a background-image that was
previously in an adjacent layer.
One thing I have noticed though, using the background image when you move
the mouse over the hyperlink (with its right aligned background image ) in
IE the cursor seems to very briefly change to an egg time.
This leads me to believe it is loading the image every time. Also the URL
does not get displayed in the Status bar like on a normal Hyperlink.
Any reason why these things might be occurring. They are not critical by any
means but if easy to put right I would like to.
Shouldn't, should cache. Is this image huge?
In fact even reading the question back it seems very stupid to use a table
but rather then remove it I'll keep it there in case you give me any more
pearls of wisdom in this context.
Thanks again for your help and be happy to know that a (another I'm sure)
website out there had directly benefited from your expertise.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.