Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-15-2012, 01:46 PM   PM User | #1
joliett89
Regular Coder

 
Join Date: Jul 2011
Posts: 172
Thanks: 64
Thanked 2 Times in 2 Posts
joliett89 has a little shameless behaviour in the past
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.
joliett89 is offline   Reply With Quote
Old 12-15-2012, 05:23 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
joliett89 (12-15-2012)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:07 AM.


Advertisement
Log in to turn off these ads.