HighDots Forums  

Lock the width of a page

Website Design comp.infosystems.www.authoring.site-design


Discuss Lock the width of a page in the Website Design forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sune A
 
Posts: n/a

Default Lock the width of a page - 11-10-2003 , 02:13 PM






Hi All!

I'm having problems with www.suneworld.com
The thing is that I'd like to lock the width of the page, so that it won't
adjust dynamically.

Any CSS people out there that can help me?

Kind regards,
Sune Alexandersen

www.suneworld.com
Skype: sunepune
MSN: suneREMOVE__ME (AT) suneworld (DOT) com




Reply With Quote
  #2  
Old   
Darin McGrew
 
Posts: n/a

Default Re: Lock the width of a page - 11-10-2003 , 02:31 PM






Sune A <sune (AT) NO_SPAM4MEsuneworld (DOT) com> wrote:
Quote:
I'm having problems with www.suneworld.com
The thing is that I'd like to lock the width of the page, so that it won't
adjust dynamically.
Why would you want to break your site like that?
--
Darin McGrew, mcgrew (AT) stanfordalumni (DOT) org, http://www.rahul.net/mcgrew/
Web Design Group, darin (AT) htmlhelp (DOT) com, http://www.HTMLHelp.com/

"I used to do lots of dumb things, but I turned my life around 360 degrees!"


Reply With Quote
  #3  
Old   
Sune A
 
Posts: n/a

Default Re: Lock the width of a page - 11-10-2003 , 02:40 PM




"Darin McGrew" <mcgrew (AT) stanfordalumni (DOT) org> wrote

Quote:
Sune A <sune (AT) NO_SPAM4MEsuneworld (DOT) com> wrote:
I'm having problems with www.suneworld.com
The thing is that I'd like to lock the width of the page, so that it
won't
adjust dynamically.

Why would you want to break your site like that?
--
What do you mean?

--
Sune Alexandersen

www.suneworld.com
Skype: sunepune
MSN: suneREMOVE__ME (AT) suneworld (DOT) com




Reply With Quote
  #4  
Old   
Filip Hendrickx
 
Posts: n/a

Default Re: Lock the width of a page - 11-10-2003 , 03:01 PM



Darin McGrew wrote:
Quote:
Sune A <sune (AT) NO_SPAM4MEsuneworld (DOT) com> wrote:

I'm having problems with www.suneworld.com
The thing is that I'd like to lock the width of the page, so that it won't
adjust dynamically.
You can set the width of a block element in CSS with
width: <some value>;
However

Quote:
Why would you want to break your site like that?
this will inevitably lead to a horizontal scroll bar if the browser
window is smaller than <some value>, which is not nice.

A better way is to use
max-width: <some value>;
which allows dynamic adjustment in narrow windows, but sets a maximum
width that will be used in wide windows. This way, you can prevent lines
of text becoming too wide, which is sometimes difficult to read.
Therefore, you best use an 'em' value for <some value>, which makes the
maximum width of you site depemdent on the font size.

Unfortunately, max-width is not supported by IE :-(.

Filip.



Reply With Quote
  #5  
Old   
David Dorward
 
Posts: n/a

Default Re: Lock the width of a page - 11-10-2003 , 03:01 PM



Sune A wrote:

Quote:
Why would you want to break your site like that?

What do you mean?
That forcing a site to conform to a certain width wastes space on large
screens, causes horizontal scrolling on narrow screens and (if you don't
use a font-size relative unit) can produce very nasty results if the font
size is different to what you expect.

--
David Dorward http://dorward.me.uk/


Reply With Quote
  #6  
Old   
William Tasso
 
Posts: n/a

Default Re: Lock the width of a page - 11-10-2003 , 03:18 PM



Sune A wrote:
Quote:
Hi All!

I'm having problems with www.suneworld.com
looks ok - perhaps you might consider making the lists of links as real
lists (<ul><li>...)

Quote:
The thing is that I'd like to lock the width of the page, so that it
won't adjust dynamically.
Bizarre - most people go to great lengths to avoid that and see it fixed
width as a problem

Quote:
Any CSS people out there that can help me?

methinks you will need a wysinwyg group

--
William Tasso - http://WilliamTasso.com




Reply With Quote
  #7  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: Lock the width of a page - 11-10-2003 , 03:40 PM



In comp.infosystems.www.authoring.site-design as well as
in comp.infosystems.www.authoring.stylesheets,
"Sune A" <sune (AT) NO_SPAM4MEsuneworld (DOT) com> wrote:

Quote:
I'm having problems with www.suneworld.com
Multiposting is evilŪ.

--
EvilŪ is a registered trademark of The President of The United States.


Reply With Quote
  #8  
Old   
Stan Brown
 
Posts: n/a

Default Re: Lock the width of a page - 11-10-2003 , 05:04 PM



In article <CrRrb.27289$jf4.1555535 (AT) news000 (DOT) worldonline.dk> in
comp.infosystems.www.authoring.site-design, Sune A
<sune (AT) NO_SPAM4MEsuneworld (DOT) com> wrote:
Quote:
The thing is that I'd like to lock the width of the page, so that it won't
adjust dynamically.
"I have this screw to drive, and I want to use a hammer."

If your requirement is to lock page width, then you're barking up
the wrong tree to do it in HTML. Use something like PDF -- with the
consequent loss of usability -- or accept that page widths _will_
change and do a better design.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/


Reply With Quote
  #9  
Old   
Mark Parnell
 
Posts: n/a

Default Re: Lock the width of a page - 11-11-2003 , 12:06 AM



Sometime around Mon, 10 Nov 2003 21:01:00 +0100, Filip Hendrickx is
reported to have stated:
Quote:
This way, you can prevent lines
of text becoming too wide, which is sometimes difficult to read.
You mean your visitors are smart enough to change their screen resolution
to larger than the default, but aren't smart enough to reduce the width of
their browser window?

--
Mark Parnell
http://www.clarkecomputers.com.au


Reply With Quote
  #10  
Old   
Philipp Lenssen
 
Posts: n/a

Default Re: Lock the width of a page - 11-11-2003 , 05:05 AM



Mark Parnell wrote:

Quote:
Sometime around Mon, 10 Nov 2003 21:01:00 +0100, Filip Hendrickx is
reported to have stated:

This way, you can prevent lines
of text becoming too wide, which is sometimes difficult to read.

You mean your visitors are smart enough to change their screen
resolution to larger than the default, but aren't smart enough to
reduce the width of their browser window?
How would an average visitor intuitively know what the best text width
is? Besides, most pages use fixed-width line-length. So taking the old
adage that visitors spend more time on other sites than yours, reducing
the line-length to a pragmatic and reasonable width makes sense.
Min-width and max-width, or until that works in that major browser IE,
a percentage width, is what I use most often.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.