Previous Message
Next Message

Center image and text in a link

Sent by ZEFXIS - Nick Mavros on 23 December 2004 14:02


> As the image is not content, why don't you simply set it as background 
> centered on  the link?
> Add to your link style:
> background:url(icon_favorites.gif) top center no-repeat #fff;
> padding-top:15px;
> *
> And all is fine.
>
> HTH
> Chris
>
> *

Because I want to use a different img for the hover effect as background for 
the icon and not to have a certain width for the link ,at the same time . I 
could do that if I had two images one with the icon and one with the icon 
and its background but that wouldn't get bigger as the a gets bigger.

See what I mean here (I used <br /> after each image:
http://www.zefxis.gr/test/css-d/test.html 

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: