Log in

View Full Version : Resolved where is this mysterious padding coming from?



Johnnymushio
04-16-2011, 07:42 AM
http://japantown.awardspace.com/

you can see the space below and above the search bar is pretty much the same.

thats because i made the top of the bar have a padding of 14px.

the padding below the bar is just there magically.

setting image padding to 0 doesnt work, so where is it getting that bottom padding from?

manually setting the bottom padding to 0 doesnt make it go away either.

coothead
04-16-2011, 08:49 AM
Hi there ,

if you wish to reduce the space below the search bar, then play with the highlighted values here....


#header {
background-image:url('/header.gif');
background-repeat:no-repeat;
background-position:0 -7px; /* I have added this attribute */
height:150px;
width:900px;
margin:-4px 25px 0 25px;
padding:0;
position:relative;
}

coothead

msmithv
09-29-2011, 11:25 AM
I had a similar problem with the space below the search bar and coothead's method worked. Cheers, Mary