473,322 Members | 1,232 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,322 software developers and data experts.

Layout problem that works in IE but not in Firefox

I have watered down the layout I intend to achieve, which is 2 columns that are dynamic, 33% and 67% of available width, and a third column that is 200 pixels.

http://www.cs.lewisu.edu/~ongni/usjo...sign/test3.htm

The structure hold in IE, but totally breaks down in Firefox.

Thanks in advance for the help.
Apr 16 '07 #1
5 1820
Hi there

Try that, it works fine in FF and IE6,7 as well

.co12 {
margin-right:200px;
}

bye
Apr 17 '07 #2
jhardman
3,406 Expert 2GB
I have watered down the layout I intend to achieve, which is 2 columns that are dynamic, 33% and 67% of available width, and a third column that is 200 pixels.

http://www.cs.lewisu.edu/~ongni/usjo...sign/test3.htm

The structure hold in IE, but totally breaks down in Firefox.

Thanks in advance for the help.
I can't believe that took me so long!
[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>test page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#container {
margin: 0px;
padding: 0px;
width: 100%;
clear: both;

}

.co1 {
width: 33%;


background-color: #00CCFF;
}
.co2 {


position: absolute;
top: 0px;
right: 0px;
width: 67%;
background-color: #0066FF;


}
.co3 {
width: 200px;
position: absolute;
right: 0px;
top: 0px;
background-color: #00FFFF;

}
.co12 {
width: auto;
position: absolute;
left: 0px;
top: 0px;
margin-right: 200px;
}

body {
color: #333333;
background-color: #dcebff;
margin: 0;
padding: 0px 5px;
font-size: 0.9em;
}
</style>
</head>
<body>
<div id="container">
<!---containder Start-->
<div id="content">


<div class="co3">
Column 3 width 200 x xx x x x xxx x x x. Column 3 width 200 x xx x x x xxx x x x. Column 3 width 200 x xx x x x xxx x x x. Column 3 width 200 x xx x x x xxx x x x. Column 3 width 200 x xx x x x xxx x x x. Column 3 width 200 x xx x x x xxx x x x. Column 3 width 200 x xx x x x xxx x x x. Column 3 width 200 x xx x x x xxx x x x. Column 3 width 200 x xx x x x xxx x x x. Column 3 width 200 x xx x x x xxx x x x.
</div>

<div class="co12">
<div class="co1">
Column 1 33% content xx x xx xx x xxx. Column 1 content xx x xx xx x xxx. Column 1 content xx x xx xx x xxx. Column 1 content xx x xx xx x xxx. Column 1 content xx x xx xx x xxx. Column 1 content xx x xx xx x xxx. Column 1 content xx x xx xx x xxx. Column 1 content xx x xx xx x xxx. Column 1 content xx x xx xx x xxx. Column 1 content xx x xx xx x xxx. Column 1 content xx x xx xx x xxx.
</div>
<div class="co2">
Column 2 67% content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld. Column 2 content xyz xyzx kjl; udoisf sjdld.
</div>
</div>


</div><!--content end-->
</div>
</body>

</html>

[/html]
Apr 18 '07 #3
jhardman
3,406 Expert 2GB
It seriously felt like it took me an hour. It appears that IE incorrectly interprets "float: right;" as "position: absolute; right: opx;". Any way, I just put the 200px div "position: absolute; right: 0px;" and I put the other two divs inside a secondary container div with a right margin of 200px.

Let me know if it helps.

Jared
Apr 18 '07 #4
Positioning in your style is unnescessary. I change only class .co12 in the style definition and layout looks how it should look.

.co12 {
margin-right:200px;
}
Apr 18 '07 #5
drhowarddrfine
7,435 Expert 4TB
This is incorrect:
<style>

Should be:
<style type="text/css">
Apr 18 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Drew Martin | last post by:
The page at the below URL renders perfectly in IE6, but is failing horribly in Firefox (0.7, 0.8). I can't figure out why and was hoping someone could take a quick look at it. Most of the layout...
7
by: Matt Kruse | last post by:
This is a typical layout, but I have specific requirements. I'm trying to figure out a) if it's possible to meet the requirements and b) if so, how. +---------------+ | header |...
1
by: fuzzyman | last post by:
I have a very odd problem that has boggled my head. I've been trying to get a 2 column layout working with CSS. The problem seems to occur with the use of the <script> tag in the document. I've...
7
by: Xavier Onassis | last post by:
I would be grateful for recommendations for a CSS layout (header, 2 cols, footer) that can accomodate dynamically added elements. I am not having any luck so far getting this to work in...
3
by: Dave | last post by:
I am designing a web page using VS2003 ASP.NET. The page contains various DIVs (panels), one of which is in grid layout. The controls in this DIV render correctly in IE, but when using Firefox they...
11
by: Ben Holness | last post by:
Hi all, I am having some trouble with some table code. It works fine in Internet Explorer, but the layout doesn't work correctly in Firefox 1.0.7 Is this a firefox bug, or am I missing...
2
by: James Frayne | last post by:
Hi, I am trying to integrate phpBB into my existing site design. I am doing this simply by pasting fragments of my HTML into the phpBB templates. This works fine in Firefox and Opera but the...
10
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it...
11
by: Grischa Brockhaus | last post by:
Hi, I'm trying to produce a div layout containing a header on the top with fixed height, a footer on the bottom using fixed height and a content layer using what's left of the browsers window. ...
10
by: Ole Nielsby | last post by:
James Kanze <james.kanze@gmail.comwrote: COM does rely on vtable layout. COM interfaces are declared as pure virtual classes, all methods using stdcall convention, and this works because most...
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.