SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Guru Ize's Avatar
    Join Date
    Nov 2005
    Location
    The Netherlands
    Posts
    808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mysterious bottom-margin on images

    Hi,

    I've run into this problem lots of times now, and it's starting to bug me. Most of the time it's not that big a deal, but there should nevertheless be something that can be done about it.

    Inline images always come with a mysterious bottom margin, that seems impossible to remove. As if there's a permanent BR element right after 'em.

    Here's an example; http://www.whatstyle.net/bla/imgmargin.html.

    Does someone know a solution to this problem?

  2. #2
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    img {
    display: block;
    }

  3. #3
    SitePoint Guru Ize's Avatar
    Join Date
    Nov 2005
    Location
    The Netherlands
    Posts
    808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Really that simple, eh?

    Thanks


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
  •