Reply to Re: add an image to a link with CSS - possible?

Your name:

Reply:


Posted by Tomasz Chmielewski on 11/26/07 13:33

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация