473,473 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

browser compatibility issue

I have some CSS that behaves perfectly in Firefox but not in IE 6.x. I'm
hoping someone has a suggestion to fix the problem.

This is the CSS i'm using:

..content {
position:relative;
margin-left:10%;
margin-right:10%;
width:80%;
background-color:#66CCFF; /* debug */
border-right:2px solid #B69C2F;
border-left:2px solid #B69C2F;
}
..leftNavColumn {
margin-left:0;
float:left;
padding:0;
border-right:4px solid #B69C2F;
width:200px;
background-color:#DDDDDD;
}
..mainColumn {
width:100%;
background-color:#99CC00;
}

-------[ HTML ]--------

<div class="contentWrapper">
<div class="content">
<div class="leftNavColumn">
</div><div class="mainColumn">This is a test...</div>
</div>

-------------------------

In Firefox mainColumn takes up 100% of the remainder of its container and
resizes when the container is resized. In IE the same CSS wraps the
mainColumn div to the next line below the leftNavColumn. Does anybody have a
fix for this? I don't really mind too much if the fix breaks the Firefox
implementation because i'm using a browser detection script to implement
browser specific styles.

Jul 25 '05 #1
4 1753
If I understand your problem, then I'll give you the answer that
Spartanicus gave me.

css:
..clr {clear: both}

html:
<div class="leftNavColumn"></div>
<div class="mainColumn">This is a test...</div>
<div class="clr"></div>

Worked great for me and ended hours of grief.
hth -- fredo

Jul 25 '05 #2
Thank you for the response fredo. However, it had no effect on the output.
The mainColumn div still wraps below the leftNavColumn in IE...

"fredo" <fr***@key-horse.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
If I understand your problem, then I'll give you the answer that
Spartanicus gave me.

css:
.clr {clear: both}

html:
<div class="leftNavColumn"></div>
<div class="mainColumn">This is a test...</div>
<div class="clr"></div>

Worked great for me and ended hours of grief.
hth -- fredo

Jul 26 '05 #3
Sorry, I didn't look carefully enough. Maybe you'd care to give this a
try:

..mainColumn {
/* width:100%; */
background-color:#99CC00;
}

hth --fredo

Jul 26 '05 #4
Thanks fredo. That looks like it worked. Thought I had already tried that
but i guess not... :)

"fredo" <fr***@key-horse.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Sorry, I didn't look carefully enough. Maybe you'd care to give this a
try:

.mainColumn {
/* width:100%; */
background-color:#99CC00;
}

hth --fredo

Jul 26 '05 #5

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

Similar topics

4
by: Jez Naisbitt | last post by:
Hi Guys, After a break of 2 years I'm now re-visiting the world of java. I recall on my last foray that I had to stick to java 1.1 so I could deploy applets from a server and obtain maximum...
33
by: Mark Tranchant | last post by:
My site now uses Apache MultiViews and some PHP code to determine whether your browser can handle the application/xhtml+xml media type. If it does, the document is sent with that content type and...
4
by: Mik Foggin | last post by:
Hi folks, I'm working on a site using css-p for all the layout and rollovers etc. I've hit a bit of a brick wall with a couple of elements though and thought someone here could help me out. ...
3
by: Rob Oldfield | last post by:
Just a quick and hopefully straightforward question.... are there any issues with web sites based on .Net not working correctly (or at all) for clients using non IE browsers (Mozilla and Firefox...
2
by: Dominic | last post by:
Hi everybody, I'm planning to use serialization to persist an object (and possibly its child objects) in my application. However, I'm concerned about the backward compatibility issue. I'm...
2
by: Roger Twomey | last post by:
I have an application that checks for browser, version and active X enabled. It uses the result for a simple if then. The issue I have is that Request.Browser.MajorVersion is returning the...
14
by: askMe | last post by:
I developed a web page that plays an mpg using the simple embed tag. When the page loads, the video starts, but then stops after a few seconds. I use the embed tag because I want the user's...
4
by: Maxwell2006 | last post by:
Hi, I am struggling with making my website compatible with multiple browsers and versions. Is there any tool that shows me how my pages look like in different browsers
27
by: David Golightly | last post by:
This is just a quick poll for all you web devs out there: What browsers do you test on/are concerned about compatibility with? Obviously, you're going to test on current-generation browsers such...
2
by: dwair | last post by:
Hi, I have been having browser compatibility issues and was wondering if anyone could help. I have been using a JavaScript array to populate marker data using ASP JS in a google Maps project. For...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.