473,748 Members | 4,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page sizing question

Prior to using style sheets, I used tables to lay out my pages. I
always used percentages when specifying widths so that the page would
fit nicely in the browsers regardless of the size of the window.

Now that I have started to use style sheets for layout purposes, I am
faced with some odd results when I try to create pages that are
resizable. I end up with boxes that jump down underneath other
elements if the window is resized too small.

Because of this, I have begun, reluctantly, to use fixed widths and
heights for my pages. The page sizes will remain static regardless of
the window size, but I am guaranteed that everything will stay put
where I want it.

I have found large sites that use both types. espn.com uses fixed
width pages. google.com uses dynamic pages.

I am curious what the concensus is on fixed width vs dynamic width
pages. Is one preferred over the other?

Any opinions or preferences?

Also, does anyone have any tips for using dynamic width pages while
preventing boxes from wrapping if the window is too small?

Thanks,
John S.
Jul 20 '05 #1
1 1799
jo*********@jst orta.com (J.Storta) wrote:
Prior to using style sheets, I used tables to lay out my pages. I
always used percentages when specifying widths so that the page would
fit nicely in the browsers regardless of the size of the window.

Now that I have started to use style sheets for layout purposes, I am
faced with some odd results when I try to create pages that are
resizable. I end up with boxes that jump down underneath other
elements if the window is resized too small.
What's odd about that? It's one of the advantages of CSS over tables.
Because of this, I have begun, reluctantly, to use fixed widths and
heights for my pages. The page sizes will remain static regardless of
the window size, but I am guaranteed that everything will stay put
where I want it.
Why is it important that they stay in the same position? Presumably
there's no relationship between the content on the left and the
content on the right (if there was then a table would be the best
choice) they are merely to be presented one after the other. And one
after the other can be either right after left OR bottom after top
(assuming a LTR TTB language).
I am curious what the concensus is on fixed width vs dynamic width
pages. Is one preferred over the other?
Dynamic is better unless your content itself is inherently fixed
width.
Also, does anyone have any tips for using dynamic width pages while
preventing boxes from wrapping if the window is too small?


How small is too small? Depends on how many columns you have and what
they contain. If they only contain text then the minimum width of the
window is obviously the sum of the lengths of the longest words in
each column. If they contain images or other fixed size elements then
the minimum width is the sum of those elements.

Using positioning rather than floating will stop the wrapping but will
IMO make the layout more prone to strange effects.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #2

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

Similar topics

11
2001
by: annie | last post by:
Hello all. I am writing an XSL stylesheet that automatically converts a page with frames to a noframes equivalent of this page, using tables. I can get the positioning of each frame write in the table layout, and the only problem left is the dimensions of each cell. So my question is: Is there any way of automatically calculating the sizing of each table cell, representing a frame, so that the resulting page will look like
5
1469
by: ima | last post by:
I'm attempting to use CSS for a three column layout. My problem is that although I'm using width % ie. column1 width 20%, column2 width 60%, and column3 20%, I end up with a horizontal scroll bar with a few more pixels to scroll. I'm here to ask those of you with more CSS experience than myself (which is just about everyone), what else should I be looking for that is adding to my page width? I've tried changing the right margin for...
3
1392
by: reachmano | last post by:
Hello everyone: When I view my web-page on different computers, I am having trouble with re-sizing the screen on some of them. Was wondering what should be done differently to take care of the resizing problem with the screen? My banner images are not getting resized to the page. Here is the sample of my code:
7
2451
by: SteveM | last post by:
I am sure this is an easy question, but being relatively new to ASP.NET programming, I can not quite grasp what I need to accomplish what I need to do. What I have is a word document that is rendered as a page (or actualy a part of a page) that is editiable. To do this I let the user download the document, edit it and then upload it back to the site. Then at Page_Open, I convert the .doc file to an html and render it back to the page......
6
2138
by: RoseW | last post by:
This is a collection of images with its own style sheet to create the hover over the thumbnail and the larger image appears. http://www4.webng.com/chesleyhs/images/planting/Planting.html Narrow images stay over to the right rather than being in the middle over even in the same spacing as the wider images. The two images at the bottom are the examples Is there a way of having some information in the stylesheet to accomodate if is a...
0
8991
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
9541
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
8242
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
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
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4602
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
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
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.