Forum Moderators: not2easy

Message Too Old, No Replies

floated DIV without a specified width

Opera 6?

         

tata668

2:14 pm on Apr 24, 2006 (gmt 0)

10+ Year Member



Am I right to say that a floating div without a specified width should be as large as its content? That it should expande to fit its content?

In Opera 6.04 this doesn't seem to be the case! How can I deal with this browser?

I can't put a specified width to my floated divs because the application uses different languages and therefore the content inside those divs may vary.. And I don't want the content to wrap, I want it on one line!

Any idea?

Miroslav Stimac

2:45 pm on Apr 24, 2006 (gmt 0)

10+ Year Member



Why do you care about it?
Only 3% of all users are using Opera and most of them use the new versions (8.x or 9.0 Beta).

My advice is:
Check whether it runs with Opera 8.x
Forget Opera 6.

Bye,
Miroslav

P.S.:
This is not a post against Opera.
I am also using Opera every day. But I know that most of us "Opera fans" use the new versions.

tata668

2:53 pm on Apr 24, 2006 (gmt 0)

10+ Year Member



I guess you are right.. I don't really care about not supporting Opera 6.

But I'm curious to know how developers dealt with that problem some years ago!

doodlebee

3:34 pm on Apr 25, 2006 (gmt 0)

10+ Year Member




But I'm curious to know how developers dealt with that problem some years ago!

They used a table.

For the record, the fact that the text wraps is an *advantage*. It means the horizonatal scrollbar doesn't appear, and your text is readable within the viewable area of your browser window. Wrapping text is a *good* thing. For some reason, though, I keep seeing people want to disable the wrap and have the horizontal scrollbar appear.

There *are* ways to prevent the wraps, but I haven't used Opera 6 in quite some time (I agree with the poster up there, I wouldn't worry about it) so I don't know if the methods work in Opera6 or not. Apologies, because offhand, I can't rememebr what those methods are - one is something like "whitespace:no-wrap" and there's another method using a sort of scripty-like style, but I can't rememebr what it is (I posted it in someone's thread not too long ago -but now I can't find it! )