PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Nov 23, 2014 6:53 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: floating divs
PostPosted: Mon Oct 31, 2005 1:32 pm 
Offline
Tranquility In Moderation
User avatar

Joined: Sun Feb 06, 2005 8:18 pm
Posts: 4990
Location: Indiana
is there a way to keep floating divs from breaking down to the next line when you don't use overflow:hidden

ie

Syntax: [ Download ] [ Hide ]
<div float left></div>
<div float left></div>
<div float left></div>


in psuedo code, of course.

lets say a I put a reallly long text line in div 1.... the other two divs break down to the next line :( I would rather have them just scroll over to the right!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 31, 2005 1:41 pm 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
In FF (where they meet the box-model standards) that doesn't ahppen.

The W3 say that if the content of a floated div is larger than the size of the div, then the content should simply be permitted to overflow the box. Even with overflow: visible explorer ignores this.

It's long know that IE don't follow that standard and simlply resize the box.... even worse, IE does not seem to know when it has resized a box, which leads to more problems I'm not going to get into.

To answer your question. There's no "clean" way to do it. Either use overflow: hidden or there's a white-space setting I can't remember (something like break-word).

Note: Opera also doesn't meet this standard.

Yep, it sux :(


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 31, 2005 1:57 pm 
Offline
Tranquility In Moderation
User avatar

Joined: Sun Feb 06, 2005 8:18 pm
Posts: 4990
Location: Indiana
That sucks.

I would like it to behave just like

Syntax: [ Download ] [ Hide ]
<tr>
    <td></td>
    <td></td>
    <td></td>
</tr>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group