Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Thanked 2 Times in 2 Posts

    Where are the spaces between images coming from?

    I am working on a tgp site, and I have spaces between images that I am not sure where they are coming from. I checked rules for all the elements, computed style in Chrome Webmaster Tools, and there is no way to tell where they are coming from.

    Why they are not display one next to another without any spaces (the distance between them is 4px, vertically and horizontally). The site is (!!!18 or older only!!! http://latinsluts.net/

    Thank you.

  2. #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Thanked 1,874 Times in 1,858 Posts
    Good morning joliett89,
    Always fun working on your site

    Your images are behaving like they are inline. Float them and that gap goes away, like this - #one img {float: left;}

    This also works - #one {font-size: 0;}

    See http://css-tricks.com/fighting-the-s...lock-elements/
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use a DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  3. Users who have thanked Excavator for this post:

    joliett89 (12-15-2012)


Posting Permissions

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