473,651 Members | 2,518 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Designing a non-overflowing form

Hi

I am trying to create a web form of the following structure
<Header/>
<Middle>
<Nav Panel/><Content Panel/>
</Middle>
<Footer/>

The header and footer will be fixed size as they will contain images. I want
the whole page to size to the browser window and if there is too much content
in the nav or content panels then I'd like scrollbars to appear. I am having
real problems trying to get the effect I want as scrollbars seem only to want
to appear to scroll the whole page.

I have removed all asp controls and tried to render an HTML page by hand.
The effect I want is similar to that of the following page, except I don't
want to have to hard-code a value for the height of the middle of the page,
I'd like the browser to fill the page with whatever is in the middle.
(Basically I want to remove the "height:200 px" from the "middle" div and have
scroll bars appear if there is too much content)

The only option I can see at the moment is to try and determine the browser
size and calculate the width of the "middle" div manually in code but that
seems rather inelegant.

Any ideas?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test Page</title>
</head>
<body>
<div style="height: 100%; background-color: green;">
<div id="header" style="height: 100px; background-color: red;">
Here's the header
</div>
<div id="middle" style="display: block; background-color: Yellow;
height:200px;
width: 100%; overflow: auto">
<div id="nav" style="backgrou nd-color: Blue; width: 30%; float:
left; height: 100%;
overflow: auto">
Lots and lots of text<br />
Line 1<br />
Line 2<br />
Line 3<br />
Line 4<br />
Line 5<br />
Line 6<br />
Line 7<br />
Line 8<br />
Line 9<br />
Line 10<br />
Line 11<br />
Line 12<br />
Line 13<br />
Line 14<br />
Line 15<br />
Line 16<br />
</div>
<div id="Div1" style="backgrou nd-color: Lime; width: 70%; float:
right; height: 100%;
overflow: auto">
Content window. This also could have lots of text <br />
Scrolling independently of the left div.
Some more lines 1 <br />
Some more lines 2 <br />
Some more lines 3 <br />
Some more lines 4 <br />
Some more lines 5 <br />
Some more lines 6 <br />
Some more lines 7 <br />
Some more lines 8 <br />
Some more lines 9 <br />
Some more lines 10 <br />
Some more lines 11 <br />
Some more lines 12 <br />
Some more lines 13 <br />
Some more lines 14 <br />
Some more lines 15 <br />
Some more lines 16 <br />
Some more lines 17 <br />
Some more lines 18 <br />
Some more lines 19 <br />
Some more lines 20 <br />
Some more lines 21 <br />
</div>
</div>
<div id="footer" style="display: block; height: 100px;
background-color: red;">
Here's the footer
</div>
</div>
</body>
</html>

May 12 '06 #1
0 907

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1246
by: Jimmy Tran | last post by:
Hi All, I have a table below and I want to design a query to pull all the members from the TABLE into a Query Result and into a single column with points assigned appropriately, but I am having a lot of difficulties doing this. Any help is greatly appreciated. TABLE MEMBER1 MEMBER2 POINTS Joe Don 2 Macy 1
2
2315
by: SuryaPrakash Patel via SQLMonster.com | last post by:
Dear All, How to reach to the highest level of normalization for database designing? Guide Lines Needed. What will be the characteristics of a database of a completely normalized databae? Check List needed.
2
1405
by: Sky Sigal | last post by:
Hello: I'm currently messing around, and need as much feedback/help as I can get, trying to find the most economical/graceful way to build usercontrols that rely on styling to look any good... It's the last part that has got me all frazzled (the 'rely on...to look good')... Let me explain -- and please bear with me as it's a bit longer than my usual questions:
3
1885
by: mystilleef | last post by:
Hello, I need to design a plug-in system for a project. The goal is to allow third party developers interact with an application via plug-ins in a clean and robust manner. At this point I am overwhelmed by my inexperience with designing plug-in systems. Are there any good tutorials on how to design good plug-in systems with Python, or any language? What are the best
8
2183
by: pransri2006 | last post by:
Hi guys! I think all of u know about the designing of compilers. Can any body tell me about the designing of the compilers. And also tell me the difference between the compilers and Interpreter which weresically used by the computers. I want to know about the basic compiler software.
5
1596
by: The Cool Giraffe | last post by:
I'm designing an ABC and in connection to that i have run into some "huh!" and "oh...". Let me put it as a list. 1. Since the class will only contain bodies of the methods, only the header file is needed. There will be no definitions provided until i derive the ABC. True or false? 2. Since i'll have two different classes (both derived from the original ABC) i'll use the following syntax in my main class using the derivation.
1
1310
by: anujaf | last post by:
I'm a VB 6 programmer. I want jump to Web designing. I would like to know what is the best web designing tool which can be intergrated with the ASP .net and what is the best book to learn web designing tools. anuja_lak@yahoo.com
0
1209
by: anujaf | last post by:
I'm a VB 6 programmer. I want jump to Web designing. I would like to know what is the best web designing tool which can be intergrated with the ASP .net and what is the best book to learn web designing tools. <send me a PM>
11
1449
by: Gunter Schelfhout | last post by:
I'm starting to write a QT-program on Linux but I'm not very experienced yet. (hang on, it will be on topic) What is the best way to go to design the lower level classes? Should I use the standard libraries as much as possible so I can reuse the classes maybe in the future in non-GUI programs? Or is it best to use as much of the QT-libraries from the beginning? For example string <-QString.
9
2627
by: pereges | last post by:
Hello I need some ideas for designing a recursive function for my ray tracing program. The idea behind ray tracing is to follow the electromagnetic rays from the source, as they hit the object.The object is triangulated. The rays can undergo multiple reflections, diffractions etc of the same object i.e. a ray hits a surface of the object, undergoes reflection resulting in a reflected ray which can again hit a surface, corner or edge...
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8695
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8460
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8576
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6157
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
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 we have to send another system
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.