On Thu, 26 Jul 2007 20:38:11 -0400, Brian Cummiskey wrote:
> Hi all,
>
> I have a simple problem with lining up text next to an image
>
>
> <p id="cart"><a href="/cart.asp"><img src="/grafx/shoping_cart.jpg" alt="View
> Cart" />0
> Items</a></p>
>
> The image is a shopping cart icon.
>
> #cart holds text formating only, no positioning or floats, etc.
>
> the text gets pushed a little lower than the image, probably 4px off baseline
> of the
> image.
>
You almost answer your own question. :)
It sounds like the image is sitting on the baseline of the text --
in other words, it has a space underneath where the text descenders lie
("tails" of g, j, p, etc.)
Try adding this rule:
#cart img { vertical-align: bottom; }
Cordially,
David
--
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/