471,618 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

FF -> Safari/Opera Float inconsistency

Hey hi....

I get this weird inconsistency in Firefox using floats.

I made this little demo of it wich u can find here:
http://tweed.xs4all.nl/demo/fffloats/

Now the ? Question mark should be in the grey bar, as it is in Safari and
Opera however in FF it's floating beneath it.

Anybody know of a workaround / fix?

Tia
Immo

Aug 15 '07 #1
6 2211
In article <C2*****************@spam.nl>, Wouter <st**@spam.nl>
wrote:
Hey hi....

I get this weird inconsistency in Firefox using floats.

I made this little demo of it wich u can find here:
http://tweed.xs4all.nl/demo/fffloats/

Now the ? Question mark should be in the grey bar, as it is in Safari and
Opera however in FF it's floating beneath it.

Anybody know of a workaround / fix?
First things first. Why don't you first fix up all the errors.
Use the W3C validation service. Using one id more than once on a
page, not closing things properly. Take a look.

btw, I suggest you use 4.01 Strict.

--
dorayme
Aug 15 '07 #2
Fixed, but the problem remains...
On 15-08-2007 11:21, in article
do**********************************...ptusnet.com.au, "dorayme"
<do************@optusnet.com.auwrote:
In article <C2*****************@spam.nl>, Wouter <st**@spam.nl>
wrote:
>Hey hi....

I get this weird inconsistency in Firefox using floats.

I made this little demo of it wich u can find here:
http://tweed.xs4all.nl/demo/fffloats/

Now the ? Question mark should be in the grey bar, as it is in Safari and
Opera however in FF it's floating beneath it.

Anybody know of a workaround / fix?

First things first. Why don't you first fix up all the errors.
Use the W3C validation service. Using one id more than once on a
page, not closing things properly. Take a look.

btw, I suggest you use 4.01 Strict.
Aug 15 '07 #3
rf

"Wouter" <st**@spam.nlwrote in message news:C2*****************@spam.nl...
Fixed, but the problem remains...
>>http://tweed.xs4all.nl/demo/fffloats/
FF is getting it right.
Floated elements must be positioned (in the source) _before_ the content
that flows around them.

Don't use XHTML.
Don't use transitional.
Use HTML 4.01 strict. Google for details.

--
Richard.
Aug 15 '07 #4
Tx, changing the position did help.

Now on the xhtml/html discussion, can I use self closing tags like in xhtml?

Or do I have to plough thru all my files removing the />'s?


Aug 15 '07 #5
Rik
On Wed, 15 Aug 2007 12:55:06 +0200, Wouter <st**@spam.nlwrote:
Tx, changing the position did help.

Now on the xhtml/html discussion, can I use self closing tags like in
xhtml?
No.
Or do I have to plough thru all my files removing the />'s?
A decent editor can do a search/replace in all files quite quickly.
--
Rik Wasmus
Aug 15 '07 #6
On 2007-08-15, rf <rf@invalid.comwrote:
>
"Wouter" <st**@spam.nlwrote in message news:C2*****************@spam.nl...
>Fixed, but the problem remains...
>>>http://tweed.xs4all.nl/demo/fffloats/

FF is getting it right.
No, FF is getting it slightly wrong I think.
Floated elements must be positioned (in the source) _before_ the content
that flows around them.
Depends what you mean by "before". They cannot go higher than the inline
content that immediately precedes them [1], although they might end up
to the left or right of it.

Provided that they don't go higher, they should be aligned to the top of
the line box of the inline content preceding them. Requirement [1] isn't
possible to satisfy if the presence of the float itself causes the line
to break before the preceding inline content, so in such cases the float
has to go a line down.

FF and IE7 both simplify things by always putting the float on the next
line anyway. Opera and Safari stick closer to the specification however.

I think that's what we're seeing here.

It was discussed in more detail here:

http://groups.google.co.uk/group/com...ca7ff30af444fd

or

http://tinyurl.com/28hb4c
Aug 15 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Kyle James Matthews | last post: by
1 post views Thread by Mark Tranchant | last post: by
4 posts views Thread by William Tcherust | last post: by
10 posts views Thread by Andrew | last post: by
4 posts views Thread by Jim West | last post: by
1 post views Thread by agatha.life | last post: by
5 posts views Thread by John | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

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.