473,503 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2110

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

Similar topics

13
2512
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
2614
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
1964
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
4482
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
1657
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
2387
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
2313
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
1967
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
1994
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...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7458
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.