Re: add an image to a link with CSS - possible?
- From: Tomasz Chmielewski <tch@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 26 Nov 2007 14:33:34 +0100
Tomasz Chmielewski schrieb:
Tomasz Chmielewski schrieb:
(...)
To OP though, my background image method will work in IE, the generated content methods will not.
How should my CSS look like? I'm trying to achieve it for some time now, with no success.
So, this is almost the one I was looking for:
#arrows a {
padding-right: 20px;
background: url(arrow.png) no-repeat center right;
content: "";
}
It works with IE (at least with IE7), but fails miserably with Konqueror - there are no links, only images :(
The 'content: "";' was confusing Konqueror - with this one, it looks fine in Firefox, IE7 and Konqueror:
#arrows a {
padding-right: 20px;
background: url(arrow.png) no-repeat center right;
}
Thanks all for help!
--
Tomasz Chmielewski
http://wpkg.org
.
- Follow-Ups:
- Re: add an image to a link with CSS - possible?
- From: Toby A Inkster
- Re: add an image to a link with CSS - possible?
- From: Ben C
- Re: add an image to a link with CSS - possible?
- References:
- add an image to a link with CSS - possible?
- From: Tomasz Chmielewski
- Re: add an image to a link with CSS - possible?
- From: Jonathan N. Little
- Re: add an image to a link with CSS - possible?
- From: Ben C
- Re: add an image to a link with CSS - possible?
- From: Jonathan N. Little
- Re: add an image to a link with CSS - possible?
- From: Tomasz Chmielewski
- Re: add an image to a link with CSS - possible?
- From: Tomasz Chmielewski
- add an image to a link with CSS - possible?
- Prev by Date: Re: IE cannot open the Internet site ... Operation aborted
- Next by Date: Re: IE cannot open the Internet site ... Operation aborted
- Previous by thread: Re: add an image to a link with CSS - possible?
- Next by thread: Re: add an image to a link with CSS - possible?
- Index(es):
Relevant Pages
|