HighDots Forums  

CSS problem with height of a div

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss CSS problem with height of a div in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default CSS problem with height of a div - 09-06-2003 , 09:07 AM






Hi all,
I've got a problem,I'm building a site,there's a div called "main" and
I use it to center my page in the browser, and there's another div
inside it called "contenuto" where I put some text...this is the css
for those 2 div

body {
margin:0px;
padding:0px;
text-align: center;
background-color:White;
height: 100%;
}

div#main{
width: 760px;
margin: 0px auto; /*centers in other browsers*/
text-align: left;
border: solid Green 2px;
}

#contenuto {
position: relative;
border: solid Red 2px;
top: 148px;
left: 105px;
width: 650px;
height: 200px;
padding:0px;
background-color: white;
}


with this code mozilla works properly,but in IE 6 the text in the
"contenuto" div is cut to the first screen, with no vertical scroll
bar...and the text exceed this limit is cut off...

does anybody can help me??I can make 2 css one for mozilla and another
one for ie6 but I need to know how to fix this problem with ie6
first...

thanks a lot
nicola

Reply With Quote
  #2  
Old   
Nicola
 
Posts: n/a

Default Re: CSS problem with height of a div - 09-07-2003 , 10:38 AM






Brian wrote:

Quote:
Nicola wrote:

#contenuto {
position: relative;
top: 148px;
left: 105px;
width: 650px;
height: 200px;
padding:0px;
}


with this code mozilla works properly,but in IE 6 the text in the
"contenuto" div is cut to the first screen, with no vertical scroll
bar...and the text exceed this limit is cut off...


You have set dimensions (in pixels, no less). Remove the width and height.

sorry I didn't set the height in pixel,it's a copy/paste error...about
the width...I need it...if I remove that the div "contenuto" is set to a
wrong width!


Quote:
does anybody can help me??


url?
sorry I can't put this online...I can post a link to the page and to the
..css file so you can check it if you want to see the code...


Quote:
I can make 2 css one for mozilla and another

one for ie6


You can, but it's just more work for you.

yeah but it's just a couple or row in php...no problem!



Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.