No replies
DoctorHarvey
Offline
newbie
Last seen: 12 years 28 weeks ago
Joined: 2007-12-28
Posts: 9
Points: 0

Hello,

I have a container 700px wide containing a left, right and main div.
Left and right have may have elements in it, but may also be empty.
The width of left and right div is either 270px or 0px.
The main div needs to take all space that is not used by left div or right div.

I tried to using three floating divs with a hr inside the main div. However, this works only for IE.
FF and Opera both try to use 100% of the container width.
What should I do?

Thanks in advance for any help!

Code below is an example of the problem.
My real code has the same elements, except much more div's and things around it.
I will post it if needed.






 


 


asd asd asd asd asd sad fgds dsfg df gdf g df gfd gsd fas dfas das das d cvx vxc v sdf ew r ewsd fsd fsd fsd fwe f we sd f
asd asd asd asd asd sad fgds dsfg df gdf g df gfd gsd fas dfas das das d cvx vxc v sdf ew r ewsd fsd fsd fsd fwe f we sd f
asd asd asd asd asd sad fgds dsfg df gdf g df gfd gsd fas dfas das das d cvx vxc v sdf ew r ewsd fsd fsd fsd fwe f we sd f
asd asd asd asd asd sad fgds dsfg df gdf g df gfd gsd fas dfas das das d cvx vxc v sdf ew r ewsd fsd fsd fsd fwe f we sd f
asd asd asd asd asd sad fgds dsfg df gdf g df gfd gsd fas dfas das das d cvx vxc v sdf ew r ewsd fsd fsd fsd fwe f we sd f