473,406 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Page layout with variable number of columns

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 traverses a
number of (flexible) sites, some written with a single-column layout,
some with two columns, some with more than two columns. The
single-column layout is more readable in a narrow window, while the
multi-column layout is more readable in, and makes better use of, a wide
window. Yes, one can keep adjusting the window size (to the extent that
the screen permits) but somehow it doesn't seem quite satisfactory.

With that in mind I have produced an experimental layout which adjusts
the number of columns to the width of the window (measured in ems, of
course, not pixels). The layouts are HTML/CSS, with a small amount of
Javascript for swapping CSS classes.

See http://www.xs4all.nl/~sbpoley/webmatters/layout6.html

I'd be interested to know:
1) if you agree that the concept is useful;
2) whether my implementation works satisfactorily. Are there
circumstances that I haven't considered, where it breaks?

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Feb 28 '06 #1
5 3042
Stephen Poley wrote:
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 traverses a
number of (flexible) sites, some written with a single-column layout,
some with two columns, some with more than two columns. The
single-column layout is more readable in a narrow window, while the
multi-column layout is more readable in, and makes better use of, a wide
window. Yes, one can keep adjusting the window size (to the extent that
the screen permits) but somehow it doesn't seem quite satisfactory.

With that in mind I have produced an experimental layout which adjusts
the number of columns to the width of the window (measured in ems, of
course, not pixels). The layouts are HTML/CSS, with a small amount of
Javascript for swapping CSS classes.

See http://www.xs4all.nl/~sbpoley/webmatters/layout6.html

I'd be interested to know:
1) if you agree that the concept is useful;
2) whether my implementation works satisfactorily. Are there
circumstances that I haven't considered, where it breaks?


Stephen,

Windows 98, 600 X 800 desktop.

Works for me on IE 6, Opera 8.52 (with the exception you document), and
Netscape 7.1. Two caveats:
- JavaScript must be enabled.
- After changing text size or window width, the page must be reloaded
to recalculate the proper number of columns. Since users don't
typically muck with these things (unless forced) I don't see this as a
problem.

Seems kinda handy to me.

Chris Beall

Feb 28 '06 #2
Chris Beall wrote:
Stephen Poley wrote:
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 traverses a
number of (flexible) sites, some written with a single-column layout,
some with two columns, some with more than two columns. The
single-column layout is more readable in a narrow window, while the
multi-column layout is more readable in, and makes better use of, a wide
window. Yes, one can keep adjusting the window size (to the extent that
the screen permits) but somehow it doesn't seem quite satisfactory.

With that in mind I have produced an experimental layout which adjusts
the number of columns to the width of the window (measured in ems, of
course, not pixels). The layouts are HTML/CSS, with a small amount of
Javascript for swapping CSS classes.

See http://www.xs4all.nl/~sbpoley/webmatters/layout6.html

I'd be interested to know:
1) if you agree that the concept is useful;
2) whether my implementation works satisfactorily. Are there
circumstances that I haven't considered, where it breaks?


Stephen,

Windows 98, 600 X 800 desktop.

Works for me on IE 6, Opera 8.52 (with the exception you document), and
Netscape 7.1. Two caveats:
- JavaScript must be enabled.
- After changing text size or window width, the page must be reloaded
to recalculate the proper number of columns. Since users don't
typically muck with these things (unless forced) I don't see this as a
problem.

Seems kinda handy to me.

Chris Beall

Yes. Works fine in Fox 1.0.7.
As long as you set up the page to degrade gracefully it seems
good to me.

mbstevens
Feb 28 '06 #3
Stephen Poley wrote:
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 traverses a
number of (flexible) sites, some written with a single-column layout,
some with two columns, some with more than two columns. The
single-column layout is more readable in a narrow window, while the
multi-column layout is more readable in, and makes better use of, a wide
window. Yes, one can keep adjusting the window size (to the extent that
the screen permits) but somehow it doesn't seem quite satisfactory.
Agreed in part. That is to say, I agree with what you're saying
in practical terms. The solution is - or should be - better browsers,
together with CSS properties on block elements that suggest minimum
and maximum widths - and subject to both user and author prefs.
With that in mind I have produced an experimental layout which adjusts
the number of columns to the width of the window (measured in ems, of
course, not pixels). The layouts are HTML/CSS, with a small amount of
Javascript for swapping CSS classes.
That sounds like a great demo of concept. But it should be a simpler
job: in particular, all that you do in javascript should be built in
to the browsers. Many browsers accept patches:-)
See http://www.xs4all.nl/~sbpoley/webmatters/layout6.html
Haven't done (too tired), but you got good feedback from others.
I'd be interested to know:
1) if you agree that the concept is useful;


Yes, but of very limited use when it's tied to a site.

--
Nick Kew
Mar 1 '06 #4
Nick Kew wrote:
See http://www.xs4all.nl/~sbpoley/webmatters/layout6.html

Haven't done (too tired), but you got good feedback from others.


I just looked. My results are:

(1) Konq and Firefox both show "section 1" and "section 2"
in a column on the left, and the rest of the page to the right
of it. Resizing the browser makes no difference - even when
that layout falls apart.
(2) Opera gives "section 1" and "section 2" the entire browser
width. Again, no change on resizing it. And that's with smaller
text - and hence more ems - than the other two, so logically there
should presumably have been more columns.

So, I fear your demo may want a bit more work.

--
Nick Kew
Mar 1 '06 #5
On Wed, 01 Mar 2006 17:49:55 +0000, Nick Kew <ni**@asgard.webthing.com>
wrote:
Nick Kew wrote:
See http://www.xs4all.nl/~sbpoley/webmatters/layout6.html

Haven't done (too tired), but you got good feedback from others.


I just looked. My results are:

(1) Konq and Firefox both show "section 1" and "section 2"
in a column on the left, and the rest of the page to the right
of it. Resizing the browser makes no difference - even when
that layout falls apart.


Not sure if we're at cross-purposes here: the layout adjustment is only
done at initial load. The idea is to help users who prefer not to resize
their windows (often) and give them a layout suitable for whatever size
they happen to have. If you resize, it will only recalculate after a
reload (and if Javascript is enabled).

I suppose I could change it so that it automatically redoes the layout
if the window is resized, but I feel that could be rather disconcerting
to the reader.
(2) Opera gives "section 1" and "section 2" the entire browser
width. Again, no change on resizing it. And that's with smaller
text - and hence more ems - than the other two, so logically there
should presumably have been more columns.


Is it possible that you've got the text size set quite large but the
zoom set to a small setting? That's the one situation I found where the
recalculation doesn't work as expected (and which I mention in the
text.)

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Mar 1 '06 #6

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

Similar topics

0
by: Merlin_1102 | last post by:
I have read previous posts on the gridbaglayout and none seem to answer my questions (sorry if any of these have been aske dI really did search and found one large thread which took me an hour to...
4
by: hilz | last post by:
Hi all: Is there a way to make the <fo:page-number> start from a value different than 1 ? (using fop to generate pdf) thanks hilz
179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
4
by: Marc-Olivier BERNARD | last post by:
Hi there, I need to create a classic layout like this: ------------------------\ top | ------------------------| | | | left| center |right|
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
11
by: David Given | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Say I have a piece of Javascript that transforms the HTML on a page. (In order to work around CSS bugs.) I could invoke this from the BODY onload...
5
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...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
0
by: Jean-François Michaud | last post by:
Hello all, I need to generate (SHEET X of Y) in titles for figures contained in a section (I already generate page A of B at the bottom right of every page in the document). Is there a way...
7
by: runner7 | last post by:
After some research and personal testing, it appears to me that if you want a maximum width for your web page in IE using div's, scripting will have to be turned on. This being the case, if you...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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,...
0
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...
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,...
0
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...

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.