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

Continuing CSS learning Divs not staying put in Mozilla

Hi All,

Background image is in place and a Div (yellow border) inside center Div
column is positioned where I want it to be. Now the problem is that in
Mozilla my third column div is dropping down below the wrapper but is
exactly where it is supposed to be in IE. I've tried some clears and
stuff like that but to no avail. What is causing this and how do I fix it?

http://ocg6.marine.usf.edu/patrick/test_css/test.html

Thanks and Happy Friday,

Patrick

--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu Phone: 727 553-3334

The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld
Jul 21 '06 #1
5 1333
Els
Patrick wrote:
Background image is in place and a Div (yellow border) inside center Div
column is positioned where I want it to be. Now the problem is that in
Mozilla my third column div is dropping down below the wrapper but is
exactly where it is supposed to be in IE. I've tried some clears and
stuff like that but to no avail. What is causing this and how do I fix it?

http://ocg6.marine.usf.edu/patrick/test_css/test.html
Cause 1: 10% + 65% + 25% + (3 * 2 * 1px) = 100% + 6px = is too wide.
Cause 2: clear:left on #contentright clears the other two floats.

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/

Now playing: Squeeze - Third Rail
Jul 21 '06 #2
Els wrote:
Patrick wrote:

>>Background image is in place and a Div (yellow border) inside center Div
column is positioned where I want it to be. Now the problem is that in
Mozilla my third column div is dropping down below the wrapper but is
exactly where it is supposed to be in IE. I've tried some clears and
stuff like that but to no avail. What is causing this and how do I fix it?

http://ocg6.marine.usf.edu/patrick/test_css/test.html


Cause 1: 10% + 65% + 25% + (3 * 2 * 1px) = 100% + 6px = is too wide.
Cause 2: clear:left on #contentright clears the other two floats.
You're good, very good. Wow! So is it the Browser that is being
persnickety or is it saying, "Hey dumbass get it right or don't do it at
all." Makes perfect sense to me now. I was trying to stuff more into it
than it could hold. I guess it would be better to use background colors
to see exactly where the divs are lining up.

Thanks Els!

Patrick

--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu Phone: 727 553-3334

The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld

Jul 21 '06 #3
Patrick wrote:
>
[...] I guess it would be better to use background colors
to see exactly where the divs are lining up.
Or install WebDeveloper into Firefox.
<http://chrispederick.com/work/webdeveloper/>. One of its many features
allows you to outline various elements on demand.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '06 #4
Patrick wrote:
Els wrote:
>Patrick wrote:
>>Now the problem is
that in Mozilla my third column div is dropping down below the
wrapper but is exactly where it is supposed to be in IE.

http://ocg6.marine.usf.edu/patrick/test_css/test.html

Cause 1: 10% + 65% + 25% + (3 * 2 * 1px) = 100% + 6px = is too wide.
Cause 2: clear:left on #contentright clears the other two floats.


You're good, very good. Wow! So is it the Browser that is being
persnickety or is it saying, "Hey dumbass get it right or don't do it at
all." Makes perfect sense to me now. I was trying to stuff more into it
than it could hold. I guess it would be better to use background colors
to see exactly where the divs are lining up.

Thanks Els!

Patrick
Patrick,

You also need to know that Mozilla (and similarly conforming browsers)
won't actually "contain" child divs the way you expect it to based on
IE's behavior. View your page in Firefox, and dial up the text size. As
the texts to the left increase, the "menu1" div will drop, to stay below
the texts. As menu1's top drops, so does its bottom, and it will appear
to "fall out" of your "contentcenter" div. #contentcenter is still the
*parent* of menu1, but Firefox won't display it as *containing" menu1.
IE behaves differently, but apparently not as specified. Surprise.

It's probably already _clear_ to you how to fix that...

What you might also fix, BTW, is the extraneous </formsitting in your
source.

--
HTH
John
Jul 21 '06 #5
John Hosking wrote:
Patrick wrote:
>Els wrote:
>>Patrick wrote:

Now the problem is that in Mozilla my third column div is dropping
down below the wrapper but is exactly where it is supposed to be in IE.

http://ocg6.marine.usf.edu/patrick/test_css/test.html
Cause 1: 10% + 65% + 25% + (3 * 2 * 1px) = 100% + 6px = is too wide.
Cause 2: clear:left on #contentright clears the other two floats.

You're good, very good. Wow! So is it the Browser that is being
persnickety or is it saying, "Hey dumbass get it right or don't do it
at all." Makes perfect sense to me now. I was trying to stuff more
into it than it could hold. I guess it would be better to use
background colors to see exactly where the divs are lining up.

Thanks Els!

Patrick


Patrick,

You also need to know that Mozilla (and similarly conforming browsers)
won't actually "contain" child divs the way you expect it to based on
IE's behavior. View your page in Firefox, and dial up the text size. As
the texts to the left increase, the "menu1" div will drop, to stay below
the texts. As menu1's top drops, so does its bottom, and it will appear
to "fall out" of your "contentcenter" div. #contentcenter is still the
*parent* of menu1, but Firefox won't display it as *containing" menu1.
IE behaves differently, but apparently not as specified. Surprise.

It's probably already _clear_ to you how to fix that...

What you might also fix, BTW, is the extraneous </formsitting in your
source.

Thanks for that info. Yep, I was messing around with something else and
the test page was conveniently open so I used it. Forgot to get rid of
the closing </formtag.

Patrick

--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu Phone: 727 553-3334

The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld

Jul 24 '06 #6

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

Similar topics

3
by: Peter Jenkins | last post by:
I have some divs I am using to get a two column layout for a section of a page, like so; <div1> <div2> <div3> blah blah blah blah blah blah blah blah...
0
by: nina | last post by:
Hi all, I've been working on a site that involves content in multiple scrolling DIVs on a page which is loaded inside multiple framesets. the layout is cramped as all hell but I'm not going to...
20
by: Firas D. | last post by:
http://firasd.org/ The divs of the 'box' class seem to have the effect I want in IE (namely: consistent height and horizontal alignment along the set of divs), but it totally falls apart in...
12
by: Michael Ramey | last post by:
Hi, I've have two divs, that are laid out side-by-side. (I'm floating the first div to the left) I need to set up css on these two divs so that the second div is vertically aligned to the...
2
by: Egon Pasztor | last post by:
Hi. I'm new at CSS, so maybe this is obvious, but I've looked around quite a bit looking for a solution. I'm playing with the vertical positioning of elements in a 2-column layout. The...
15
by: red | last post by:
How do I center two side by side divs ? I've been writing css pages for a while but there's one thing tha still eludes me. I can center a div with margin auto. I can place two divs side by side...
2
by: Jamie Jackson | last post by:
I'd like to get a couple of divs centered in a container (let's say the container is a td, but it could also be a div). Here's what I have now (div2 and div3 are floated left):...
6
by: veerleverbr | last post by:
Hi, I have the following html: <div id="content"> <div id="leftpart">...</div> <div id="rightpart">...</div> </div> leftpart en rightpart are in the css set to float left. The content of...
1
by: madhusrivats | last post by:
hi all, i have a problem in mozilla that is in my user controll i ve used divs , now that d user controll is not at all working in mozilla but it works in IE, can any one help me out to solve this...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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...

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.