SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Location
    West Coast Canada
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry links and images

    How do you line up your image with the link. My image is a little higher than my link.

    Thanks for your help
    chevywes
    Last edited by chevywes; Aug 19, 2008 at 20:47.

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The question is a little general. If you mean using an <img> tag within a link, then the image, being an inline element, will be aligned to the text baseline, leaving a small gap below for text descenders.
    Code:
    a img { vertical-align: bottom;}
    should sort that.

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Location
    West Coast Canada
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you centauri, that close, very close, I'm going to leave well enough alone.

    Thanks again for all your help
    chevywes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •