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 6 of 6

Thread: reducing gap

  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Posts
    406
    Thanks
    119
    Thanked 0 Times in 0 Posts

    reducing gap

    any idea why the big 3" gap appears between my thumb divs and the HR right above the affiliate divs section????

    http://www.shirtsaboutnothing.com/new_index1.html

    thanks!


    Code:
                 <li>Holds up to four guitars </li>
    		  </ul>
    		</div>
    
            <p class="clrflt">&nbsp;</p>
    
    		<hr>
    		<div class="affiliate">
    		   <img src="pics/cases_thumb.gif">
    please advise. thanks!

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    I don't see a gap that large, but the gap that's there is caused by the min-height on your .index_thumb ul css. Firebug makes these issues trivially easy to debug.
    Are you a Help Vampire?

  • #3
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,696
    Thanks
    0
    Thanked 232 Times in 227 Posts
    Hi there sixrfan,

    you could try changing this...
    Code:
    
    #content {
    	margin: 0 0 0 200px;
    	padding: 5px;
    	width: 680px;
    	min-height: 550px;
    	height: auto;
    }
    
    ...to this...
    Code:
    
    #content {
    	float:left;
    	padding: 5px;
    	width: 680px;
    	min-height: 550px;
    	height: auto;
    }
    
    coothead

  • Users who have thanked coothead for this post:

    sixrfan (12-25-2009)

  • #4
    Regular Coder
    Join Date
    Aug 2009
    Posts
    406
    Thanks
    119
    Thanked 0 Times in 0 Posts
    thanks, that float: left worked!

  • #5
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,696
    Thanks
    0
    Thanked 232 Times in 227 Posts
    No problem, you're very welcome.

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello sixrfan,
    Your use of margin instead of float on that content column is not a wrong approach, it's just done wrong in this case.
    It should be more like this -
    Code:
    #content {
    	margin: 0 0 0 210px; /*because #leftnav is 210px wide*/
    	padding: 5px;
    	/*width: 680px; if you don't specify a width it will use all that's left to it, without float drop*/
    	min-height: 550px;
    	height: auto;
    }
    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


  •  

    Posting Permissions

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