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

Home Posts Topics Members FAQ

float problem with Mozilla

Hi,

<http://www.fit.fraunhofer.de/~koch/float_prob/>

Is there a way to make Mozilla not to push the red image on top of the
menu on the left when the viewport's width is very small? Opera,
Konqueror and WinIE render in a way I would like it to be.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #1
9 5382
Johannes Koch wrote:
Hi,

<http://www.fit.fraunhofer.de/~koch/float_prob/>
Clear bug on Mozilla. Someone familiar with mozilla should check if it is
reported.
Is there a way to make Mozilla not to push the red image on top of the
menu on the left when the viewport's width is very small?


#content {min-width:200px;}

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #2
Lauri Raittila wrote:
Johannes Koch wrote:
<http://www.fit.fraunhofer.de/~koch/float_prob/>

Clear bug on Mozilla. Someone familiar with mozilla should check if it is
reported.


I simplified the example. Now it's only a p with a margin-left and a
floated image.

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #3
Lauri Raittila wrote:
Johannes Koch wrote:
Hi,

<http://www.fit.fraunhofer.de/~koch/float_prob/>
That seems to have changed. This is what it used to be, exept yellow
border on #content, and image moved before <p>
http://www.student.oulu.fi/~laurirai...illafloat.html
Clear bug on Mozilla. Someone familiar with mozilla should check if it is
reported.


Brokes agains #3 on
http://www.w3.org/TR/CSS2/visuren.html#float-rules
http://www.w3.org/TR/CSS21/visuren.html#float-rules
Is there a way to make Mozilla not to push the red image on top of the
menu on the left when the viewport's width is very small?


#content {min-width:200px;}


Opera seem to have bug as well, as float:righted image should overflow
to left. Opera breaks rule #1 quite quickly.

IE5.5 renders it almost as spec requires, it only breaks rule #1 when it
left outer edge of float would go outside window. Other possibility would
be to break rule about taking float out of flow. Or doing what mozilla
does, rendering image outside window.

This seems to be something that should be tackled in specification level,
I think, as spec really don't give good answer, on what to do.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #4
Els
Johannes Koch wrote:
Lauri Raittila wrote:
Johannes Koch wrote:
<http://www.fit.fraunhofer.de/~koch/float_prob/>


Clear bug on Mozilla. Someone familiar with mozilla should check if it
is reported.


I simplified the example. Now it's only a p with a margin-left and a
floated image.


Why did you simplify it?
Lauri's solution still works, only change #content to p.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #5
Els wrote:
Why did you simplify it?
Because now it only contains necessary things.
Lauri's solution still works, only change #content to p.


No. The margin-left is in em, the image's width is in pixel.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #6
Johannes Koch wrote:
Lauri Raittila wrote:
Johannes Koch wrote:
<http://www.fit.fraunhofer.de/~koch/float_prob/>
Clear bug on Mozilla.


I simplified the example.


I saw. Now it shows float bug in Opera, and something in between bug and
correct behaviour on IE5.5.
Mozilla renders it exactly as specification says. It seems that min-width
should be always used on float:right things (and for float:left things it
rtl)

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #7
Johannes Koch wrote:
Els wrote:
Why did you simplify it?


Because now it only contains necessary things.


Please use different address when you simplefy things - it took me a
while to get what had happened, when I tested it in IE, I thought it has
some more serious bug.
Lauri's solution still works, only change #content to p.


No. The margin-left is in em, the image's width is in pixel.


http://www.student.oulu.fi/~laurirai...llafloat2.html

All you need to know is image width. Margin is irrelevant. You forgot
that width == content-width in CSS?
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #8
Johannes Koch wrote:
Lauri's solution still works, only change #content to p.

No. The margin-left is in em, the image's width is in pixel.


Nonsense. Lauri's suggestion is fine :-)
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #9
Lauri Raittila wrote:
Please use different address when you simplefy things - it took me a
while to get what had happened, when I tested it in IE, I thought it has
some more serious bug.
Sorry.
You forgot
that width == content-width in CSS?


Yes, shame on me :-)
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #10

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

Similar topics

0
by: Mike Kozlowski | last post by:
I have an absolutely positioned block on the top of my page, a block floated left, and a third block in the normal flow. IE6 and Mozilla 1.4 disagree on where the floated block should be placed --...
5
by: Trent | last post by:
I was experimenting with two column layouts, and at one point wrote the code listed at the end of this message. IE and Mozilla have two entirely different interpretations of what it does. In...
1
by: toylet | last post by:
Unlike Mozilla, when float:right an item in IE6, it's sort of appending a <br> after the float. You can see the difference here: http://toylet.homeip.net/~toylet Is there a way to stop IE6...
0
by: MediaDesign | last post by:
pls check: http://www3.telus.net/public/a7a96826/css.html float: right problem--> I need for the div "contentright" to line up with "contentright2col" this works perfectly in mozilla but I.E 6...
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...
7
by: Will Hartung | last post by:
Hi all... I'm working on a site that is show up a strange float bug (shocking I know) using Mozilla 1.7. You can see the problem here: http://www.marieosmond.com/Catalog1.aspx?coll=Y&page=2...
2
by: Dr. Richard E. Hawkins | last post by:
I've googled around, and asked everyone I know, but I still can't find any reference to anyone else having faced this particular IE bug with floats. I've put a page at...
2
by: Remi Villatel | last post by:
Hi there, I have following CSS definitions: div.limits { margin: 0 20px 0 20px; } div.halfleft { float: left; left: 0; width: 50%;
2
by: Jim Carlock | last post by:
I ran into a problem a think. Either that or I overlooked something. I seem to run into this problem quite often. I fail to pinpoint the problem and it appears as a bug with mozilla browsers....
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.