SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Mar 2004
    Posts
    260
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    enclosing DIV creates space below image

    On this page:

    http://new.fightforsight.sigma.titan...co.uk/about-us

    Why on earth would the enclosing DIV create a space below the image banner-about.jpg?

    The enclosing div is created by the CMS, so it better stay there. But why the few pixels space, and how do I get rid of it? (Btw, no style has been applied to the enclosing div)

    Many thanks for any help!

  2. #2
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    This is a common error that a lot of people come across that is tricky to figure out.

    Simply add "display:block;" to your img and it will take that space out of there.

  3. #3
    SitePoint Addict
    Join Date
    Mar 2004
    Posts
    260
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sensational!
    Many thanks

  4. #4
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    No problem, glad to help. A good while ago I had the same problem and it drove me nuts, but I found my answer here too.


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
  •