473,327 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

CSS problem with height of a div

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
Jul 20 '05 #1
1 2149
Brian wrote:
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!

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...


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!

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ataru Morooka | last post by:
Hello, I am renewing a website using CSS and I have some problems with IE6. Following this link: http://www.ansv.it/templates/Template_Index_IT.dwt.asp you may notice that the container area has...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
2
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate...
12
by: Raed Sawalha | last post by:
I have the following table which i can not switcha to design view error message said Could not open in Design view. Quote values differently inside a '<% ...."value"... %>' block. and the...
3
by: Chifo | last post by:
hello. i have a problem with a populate html table with data from table here it's the problem two querys retrieving data from table, one of querys show me a colletion of data from 6:00 am to...
0
by: Derty | last post by:
Have an issue with a simple drop down list that I need to filter results of a database table and page display. I can get the drop down list to populate correctly but can't make the page databound...
10
by: Stephen.Schoenberger | last post by:
Hello, Sorry if this is not "exactly" a C topic but I thought this would be the best place to start. I need some guidance on working with bitmap images in ANSI C. I need to "read" in a bitmap...
2
by: swethak | last post by:
hi , i write the code in .htm file. It is in cgi-bin/searches/one.htm.In that i write a form submitting and validations.But validations are not worked in that .htm file. I used the same code in my...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.