Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    172
    Thanks
    64
    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
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,673
    Thanks
    22
    Thanked 1,827 Times in 1,811 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 the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • 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
    •