473,805 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Layout with variable-height middle section

I'm working on a layout that has a variable-height middle section and need
some suggestions on how I can make the bottom section adapt to that
situation.

Basically, I have:
- a fixed-length, fixed-width top section which is just a graphic
- a fixed-width _variable_heigh t middle section which contains two columns,
an index on the left and main content on the right
- a fixed-length, fixed-width bottom section which is mostly a graphic with
a bit of text thrown in

I've been referring to this article in A List Apart:
http://www.alistapart.com/articles/flexiblelayouts/

I've tried to use the information in this article for my own situation but
it really doesn't work in my case. The difference is that the article
envisions a case where the second column in the middle section is always the
longest one. That enables the CSS designer to make it relative while the
other three columns in the middle section are absolute and the bottom then
adapts to the second column very smoothly.

In my case, though, either the index or content columns could be longer on
any given page so I can't simply define either column as the relative and
make the other one absolute. Is there any way that I can make my bottom
section sit below the longer of the two middle section columns _regardless_
of which is longer on that particular page?

For what it's worth, I've looked at "Method 2" in the same article which
appears to address this issue but it seems to only be half-explained. A
skeleton Javascript function is provided but he doesn't discuss the
invocation at all: where do I call this function and what exact values do I
pass it?

I'd really like to find a solution for my problem and, ideally, I'd like to
stay away from Javascript unless the development community has come around
to approving of Javascript. When I started doing web development 10 years
ago, Javascript solutions to problems were usually a nasty kluge that always
seemed to work correctly only in some of the major browsers. I've only
started to come back to this sort of web design now quite recently so maybe
things have changed though.

--
Rhino
Jun 27 '08 #1
2 3490

"rhino" <No************ ***********@ano nymous.comwrote in message
news:g1******** **@news.datemas .de...
I'm working on a layout that has a variable-height middle section and need
some suggestions on how I can make the bottom section adapt to that
situation.

Basically, I have:
- a fixed-length, fixed-width top section which is just a graphic
- a fixed-width _variable_heigh t middle section which contains two
columns, an index on the left and main content on the right
- a fixed-length, fixed-width bottom section which is mostly a graphic
with a bit of text thrown in
http://nrkn.com/2ColFixed/

Or any one of these, just remove the extra column:

http://css-discuss.incutio.com/?page=ThreeColumnLayouts

Jun 27 '08 #2

"Nik Coughlin" <nr******@gmail .comwrote in message
news:g1******** **@registered.m otzarella.org.. .
>
"rhino" <No************ ***********@ano nymous.comwrote in message
news:g1******** **@news.datemas .de...
>I'm working on a layout that has a variable-height middle section and
need some suggestions on how I can make the bottom section adapt to that
situation.

Basically, I have:
- a fixed-length, fixed-width top section which is just a graphic
- a fixed-width _variable_heigh t middle section which contains two
columns, an index on the left and main content on the right
- a fixed-length, fixed-width bottom section which is mostly a graphic
with a bit of text thrown in

http://nrkn.com/2ColFixed/

Or any one of these, just remove the extra column:

http://css-discuss.incutio.com/?page=ThreeColumnLayouts
Thank you! This gives me lots of food for thought. I'll mull this over a bit
and you'll probably see me back in the group again to ask some followup
questions.

--
Rhino
Jun 27 '08 #3

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

Similar topics

7
2736
by: James Thornton | last post by:
I'm trying to make the transition from tables to CSS, and I need someone to explain how to achieve the following layout (understanding the concepts behind this layout will help me considerably in grokking CSS positioning): http://unifiedmind.com/images/css-example.gif In this example, boxes one and two are wrapped in a box that is 100% wide.
2
2607
by: CJM | last post by:
I'm developing a site for a charity which I am aiming to make standards-compliant, accessible and cross-browser compatible. I'm doing OK so far and have the workings of a respectable site, but I still have a few little niggly problems: Site: http://www.aif-advocacy.org.uk/index.asp CSS: http://www.aif-advocacy.org.uk/aif.css
4
3493
by: Marc-Olivier BERNARD | last post by:
Hi there, I need to create a classic layout like this: ------------------------\ top | ------------------------| | | | left| center |right|
0
1452
by: Lindy | last post by:
I have a schema file called Asc.xsd which I have added to my .Net project (VB). I am using XMLTextWriter in order to create/write data to a new XML file. How can I access the elements, etc. directly from this schema in order to simplify my adding the data to the new XML file? I basically want to Dim a variable of the type of the XSD layout and then have access to all of the elements. However, I cannot see the name of the XSD file...
5
633
by: Stephen Poley | last post by:
There are plenty of people around these groups who promote the idea of flexible page design. However, while employing relative units and not fixing column-widths is a big improvement on fixed-pixel layouts, it isn't really enough IMHO. In principle the user can indeed set his window-size to what he wants, and sites will then adjust to that. The adjustment will however not be optimal for all sites. The problem becomes evident if one...
14
4867
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it can be done using the designer but I intentionally don't want to use that. The one reason is that you cannot change the code generated by the designer. The other could be that you have more free hand and control to design your GUI. 2....
0
878
by: bmayer | last post by:
I am creating reports from a database. As part of these reports there can be several gridviews of variable length. I tried absolutely positioning of the gridviews but the lengths are too variable to make a decent looking layout. I then tried Relatively positioned, and could not get this to make any sensible layout. I then found placeholders and dynamically adding controls. That has worked fairly well, except that it is a good deal more...
53
4144
by: brave1979 | last post by:
Please check out my javascript library that allows you to create any layout for your web page, nested as deep as you like, adjusting to width and height of a browser window. You just describe it in javascript object and that's all. No need to know CSS hacks, no need to clutter your html with tables. http://www.bravelayout.scarabeo.biz/Quickstart
10
2053
by: sumsin | last post by:
The C++ Object Model book says that 'Nonstatic data members are allocated directly within each class object. Static data members are stored outside the individual class object. Static and nonstatic function members are also hoisted outside the class object. Virtual functions are supported in two steps: A table of pointers to virtual functions is generated for each class (this is called the virtual table). A single pointer to the...
11
1309
by: Daniel Norden | last post by:
Hello. Can you give me some feedback on my code layout? I have everything organized in an object, "NRL", that's used as a namespace, and there are other subobjects/modules below that, for example "dialog" or "ajax". I'm interested in general comments, and I have some specific questions, but first the (sample) code: var NRL = {};
0
9716
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10609
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
10360
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
10366
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,...
1
7646
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...
1
4323
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
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3007
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.