472,805 Members | 850 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

CSS problems with IE6...perfect with Opera and Firefox...strange, uh ;-)

Hello, yes..it must be hard to try and help someone else coding but
today is a full week of sadness and stress for IE CSS rendering and I
need your help.
Here you have a link that looks nice with Opera and Firefox but it
shows problems with IE6 (I've no idea with IE7):
http://www.fitcisl.it/fit/index.asp
Here I copy the css code with the hope that someone knows a hack so to
make it compatible with all the browsers.
Thank you!
Ataru

@charset "utf-8";
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0; /* it's good practice to zero the margin and padding of
the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers.
The text is then set to the left aligned default in the #container
selector */
color: #000000;
}
..twoColFixLtHdr #container {
width: 766px; /* using 20px less than a full 800px width allows for
browser chrome and avoids a horizontal scroll bar */
background: #FFFFFF;
margin: 0; /* the auto margins (in conjunction with a width) center
the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the
body element. */
}
..twoColFixLtHdr #header {
background: #DDDDDD;
padding: 0; /* this padding matches the left alignment of the
elements in the divs that appear beneath it. If an image is used in
the #header instead of text, you may want to remove the padding. */
}
..twoColFixLtHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header
div will avoid margin collapse - an unexplainable space between divs.
If the div has a border around it, this is not necessary as that also
avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to
keep the element away from the edges of the div */
}
..twoColFixLtHdr #sidebar1 {
float: left; /* since this element is floated, a width must be given
*/
width: 246px; /* the actual width of this div, in standards-compliant
browsers, or standards mode in Internet Explorer will include the
padding and border in addition to the width */
background: #EBEBEB; /* the background color will be displayed for
the length of the content in the column, but no further */
padding: 0;
}
..twoColFixLtHdr #mainContent {
margin: 0 0 0 246px; /* the left margin on this div element creates
the column down the left side of the page - no matter how much content
the sidebar1 div contains, the column space will remain. You can
remove this margin if you want the #mainContent div's text to fill the
#sidebar1 space when the content in #sidebar1 ends. */
padding: 0; /* remember that padding is the space inside the div box
and margin is the space outside the div box */
}
..twoColFixLtHdr #mainContentCentral {
float: left; /* since this element is floated, a width must be given
*/
width: 260px; /* the actual width of this div, in standards-compliant
browsers, or standards mode in Internet Explorer will include the
padding and border in addition to the width */
padding: 0; /* remember that padding is the space inside the div box
and margin is the space outside the div box */
}
..twoColFixLtHdr #mainContentRight {
float: left; /* since this element is floated, a width must be given
*/
width: 260px; /* the actual width of this div, in standards-compliant
browsers, or standards mode in Internet Explorer will include the
padding and border in addition to the width */
height: 1% /* Holly hack for Peekaboo Bug */
padding: 0; /* remember that padding is the space inside the div box
and margin is the space outside the div box */
}
..twoColFixLtHdr #footer {
padding: 0 10px 0 20px; /* this padding matches the left alignment of
the elements in the divs that appear above it. */
background:#DDDDDD;
}
..twoColFixLtHdr #footer p {
margin: 0; /* zeroing the margins of the first element in the footer
will avoid the possibility of margin collapse - a space between divs
*/
padding: 10px 0; /* padding on this element will create space, just
as the the margin would have, without the margin collapse issue */
}
..fltrt { /* this class can be used to float an element right in your
page. The floated element must precede the element it should be next
to on the page. */
float: right;
margin-left: 0;
}
..fltlft { /* this class can be used to float an element left in your
page */
float: left;
margin-right: 0;
}
..clearfloat { /* this class should be placed on a div or break element
and should be the final element before the close of a container that
should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}

Jun 24 '07 #1
0 2076

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

Similar topics

13
by: TheKeith | last post by:
Is it just me or does opera and ie not render the float style properly? IE does a sucky job at it, but opera makes a total mess; Mozilla/Firefox renders it correctly however. I'm just trying to be...
1
by: Mark Tranchant | last post by:
Argh. I've no idea where to start with this one. Take a look at: http://tranchant.plus.com/notes/cable-wrap The problem occurs on all pages, but you need a fairly long page to demonstrate it....
8
by: Bob Richardson | last post by:
After making corrections, and passing the WC3 validation checks for the web page and the CSS, I'm still having problems ... only with Opera (7.54 and 8.0) at: ...
32
by: jp29 | last post by:
My take on problems composing, serving and rendering XHTML documents/web pages: 1. Typical conscientious web authors are producing XHTML documents (Web pages) that feature valid Markup and with...
0
by: the friendly display name | last post by:
Hi, I have a filled multiline textbox on the site. I can scroll it with IE and Firefox, but under Opera (tested under 7.54, and Opera 8, under "identify as MSIE" and under Opera identification)...
2
by: Eric Lindsay | last post by:
I have been trying to do a CSS liquid layout imitating a frame, using position: fixed for header, footer, and side navigation, and a fixed background image. Page is valid HTML 4.01 Strict, and is...
10
by: patrick j | last post by:
Hi I'm wondering why my horizontal navigation lists don't align at the left in Opera as they do in IE6, IE7, Safari, Firefox and iCab? A URL with both of the horizontal lists is here: ...
2
by: Amanda | last post by:
please take a look at: shannon.amandadevries.com 1. in firefox, the 'content' div should be starting on the right-hand side of the menublock, not all the way down at the 'copyrightblock'....
15
by: dhtml | last post by:
Title says it. If I use a for in loop on an HTML collection, I get length twice. <!DOCTYPE HTML> <html lang="en"> <head> <title>length twice</title> </head> <body> <form...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.