473,472 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CSS 2 columns layout full screen with floating nested divs

basstradamus
11 New Member
Hi
After few hours of searching the web and brainstorming I did not solve my problem.

The problem...
I want to create two column full screen layout (with header and footer) where left column has width 190px and right column has rest of the screen. Right column contents is changing dynamicly and sometimes it is wider than column itself so if right column is floating it is going down below left one.

Pic below is showing the problem



I hope that there is solution different than use static width of view.
Mar 29 '07 #1
4 4851
AricC
1,892 Recognized Expert Top Contributor
Hi
After few hours of searching the web and brainstorming I did not solve my problem.

The problem...
I want to create two column full screen layout (with header and footer) where left column has width 190px and right column has rest of the screen. Right column contents is changing dynamicly and sometimes it is wider than column itself so if right column is floating it is going down below left one.

Pic below is showing the problem



I hope that there is solution different than use static width of view.
Have you found a solution to this problem?
Mar 30 '07 #2
KevinADC
4,059 Recognized Expert Specialist
use frames. Peg the left frame at 180 and the right frams as * which will use all the rest of the screen.

Or use a two column table

or use three divs, a contianer div with 100% width the two column divs within the container div. Change the two column divs to "display: inline" and they hopefully don't break.
Mar 30 '07 #3
Christopera
70 New Member
Something similar to this http://www.buyersquad.com?
Mar 31 '07 #4
basstradamus
11 New Member
I did not used frames because I not preffer this way. I solve this problem usign pure CSS. That's how I wanted to.

Expand|Select|Wrap|Line Numbers
  1. #leftMenu {
  2.     width: 190px;
  3.     cursor:default;
  4.     overflow:hidden;
  5.     float:left;
  6. }
  7. #right {
  8.     margin-left:190px;
  9. }
  10. .mysqlAddTableMenu {
  11.     display:none;
  12.     width:100%;
  13.     float:left;
  14.     overflow:auto;
  15. }
Where #leftMenu is for naviagation fixed width left, right is div that contain any other stuff that will de displayed on the screen, and .mysqlAddTableMenu(is nested in right) is showing scrollbars when it dosent fit to screen.
I figure that when floating of .mysqlAddTableMenu is not set that layout doesn't work in IE.
The style that I listed above is only small part of page style but it concern the problem.

Thanks for any help on your side.
Apr 18 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

39
by: Zak McGregor | last post by:
Hi all Are there any good solutions to aligning form field names and input boxes without resorting to tables? I am struggling to do this nicely at the moment. Thanks Ciao Zak
30
by: Diane Wilson | last post by:
I'm trying (once again) to figure out how to make a robust CSS layout style that can replace tables. I'd like to be able to do a basic two-column layout, with a one-column header, a two column...
15
by: Tamblyne | last post by:
This problem has got to have a simple solution and I can't be the first person who has ever handled it. Perhaps Google is no help because I'm not using the right terms? (I did find one post...
3
by: ckirchho | last post by:
Halo, I am trying to realize a two column layout basically like this: <html> <head> <style> leftCol { float: left; width: 15em; }
3
by: Carl Gilbert | last post by:
Hi I am looking to convert a site from HTML to ASP.NET making use of CSS. I have tried various combinations but I can not seem to get the correct combination of div and CSS tag configurations....
3
by: Vai2000 | last post by:
Hi All, I am coming from old school web-design so prefer table layout. I see people using div just everywhere...? Why aren't they using tables? which is better? esp. when u have objects custom...
6
by: =?Utf-8?B?Tkg=?= | last post by:
Hi, What do you recommend for defining the layout of an asp.net 2.0 page? Leaving masterpages and user controls aside for the moment is the use of tables or Divs the best approach? I have...
18
by: zzpat | last post by:
I've come to the conclusion that float was never made for designing a page, but is there a good way to float three columns with the following characteristics? leftColumn 20% rightColumn 20%...
8
by: Sham | last post by:
I am trying to perform the following query on a table that has been indexed using Full Text Search. The table contains multiple columns than have been indexed. (Below, all xml columns are...
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
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,...
1
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: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.