Reply LinkBack Thread Tools Search this Thread
Old 30-08-2006, 00:02   #1 (permalink)
patcyr001
Registered User
 
Join Date: Aug 2006
Posts: 4
padding-top is causing an unwanted whitespace gap in NN

Hi,

Can anyone let me know why having a padding-top of 130px is causing NN to add extra space after my content (text). In IE everything is ok (it's padding 130px down without extra white space after my text(the top padding works in nn but it seems to also add 130 px after the text))

I've try many different things but without success. I'm a beginner with this and I'm currently experimenting with div instead of tables to layout my page elements.


Here is part of my test css
html
{
margin: 0px;
body: 0px;
}


body {
margin: 0;
padding: 0;
background-color: white;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 0.625em;
line-height:120%;

}
div#conteneur_modvehicule{
position:relative;
display: block;
margin-left: auto;
margin-right: auto;
text-align:center;
border:#FF0000;



}
div#xxxx{
position:relative;
margin-left: auto;
margin-right: auto;
text-align:center;
border:#000000;
}

div#photo_modvehicule{
position:relative;
background-image:url(images/panel_mod_vehicule_photo.jpg);
background-repeat:no-repeat;
margin:auto;
text-align:center;
width:778;
height:212;
padding-top:130;
border:#99FF00;
background-color:#0099FF;

}
Many Thanks
  Reply With Quote
Old 30-08-2006, 02:34   #2 (permalink)
d*d
Moderator
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,299
you might want to use 'padding:130px'
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8