473,506 Members | 17,176 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Centered CSS

How can I center a page (that uses CSS) so that it has:
- maximum width of 1024
- minimum width of 800
Therefore it should be a liquid design. I haven't found any way in
doing this, not using tables. Yes, it can be done using one table, see
http://www.quirksmode.org/css/centering.html
but is there no way to do it without a table in strict XHTML?

I'm baffled :)
Jul 20 '05 #1
32 2798
Els
Jocab wrote:
How can I center a page (that uses CSS) so that it has:
- maximum width of 1024
- minimum width of 800
Therefore it should be a liquid design. I haven't found any way in
doing this, not using tables. Yes, it can be done using one table, see
http://www.quirksmode.org/css/centering.html
but is there no way to do it without a table in strict XHTML?

I'm baffled :)


Do you want it vertically centered?
The table in abovementioned example is there only for the
vertical centering.
Horizontal centering isn't a problem with css.
Your maximum width of 1024 is your choice, but the minimum
width of 800 will given a scrollbar even in 800x600 screens.
Besides, a lot of people like have their browser windows
smaller than that, even if their screen is bigger.
So don't define a minimum width, unless you have to for some
layout reason, but then make it way less than 800.
--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #2
Jocab wrote:
How can I center a page (that uses CSS) so that it has:
- maximum width of 1024
- minimum width of 800
Therefore it should be a liquid design.


That's a strange definition of liquid design. How about designing for
any width?

http://www.allmyfaqs.com/faq.pl?AnySizeDesign

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3
In article Jocab wrote:
How can I center a page (that uses CSS) so that it has:
- maximum width of 1024
- minimum width of 800
Hm. You mean the centered are will have those limits?

html {height:100%;display:table;min-width:800px;
max-width:1024px;margin:auto;}
body {display:table-cell;vertical-align:middle;}

Or something like that.

Does not work on IE, but that is probably irrelevant as you use XHTML,
but I don't see any reason for min/max widths in px unit I assumed from
your numbers.
Therefore it should be a liquid design.
No, it wont be. I practically never use 800px or wider browser window. No
problems, exept some idiots that think everybody has at least 800px wide
area in browser where their page would be rendered.

How about those people that use 1600*1200 resolution in their 17" box,
and also 25px normal font size?
I haven't found any way in doing this, not using tables.


I haven't found any reason to do that.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #4
On Sun, 22 Feb 2004 22:45:00 GMT, Brian
<us*****@julietremblay.com.invalid> wrote:
That's a strange definition of liquid design. How about designing for
any width?

http://www.allmyfaqs.com/faq.pl?AnySizeDesign


Well, let me be a little clearer. What I want is a page with a minimum
resolution of 800 pixels (this is just an example), centered, which
works in IE also. If the width were fixed at 800 px, then it won't be
a problem. But I would like it to have max-width hof let's say 1024 or
1280. Because I have a 1600 screen, and an 800 page looks silly in
such a resolution. Moreover, if I don't set a max (or fixed) width, on
1600 the page is waaaaaaaaay too large and it looks very ugly. Is my
reasoning wrong?
Jul 20 '05 #5
Els

Jocab wrote:
On Sun, 22 Feb 2004 22:45:00 GMT, Brian
<us*****@julietremblay.com.invalid> wrote:
That's a strange definition of liquid design. How about designing for
any width?

http://www.allmyfaqs.com/faq.pl?AnySizeDesign

Well, let me be a little clearer. What I want is a page with a minimum
resolution of 800 pixels (this is just an example), centered, which
works in IE also. If the width were fixed at 800 px, then it won't be
a problem. But I would like it to have max-width hof let's say 1024 or
1280. Because I have a 1600 screen, and an 800 page looks silly in
such a resolution. Moreover, if I don't set a max (or fixed) width, on
1600 the page is waaaaaaaaay too large and it looks very ugly. Is my
reasoning wrong?


not really, except for the minimum width :-)
Why don't you use a percentage for the left and right margins?
Let's say 10% on each side, container div of 80% in the
middle. See if that does what you want :-)
In addittion you can set a minimum width of let's say 600px,
but that won't work in IE.

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #6
On Mon, 23 Feb 2004 08:10:03 GMT, Jocab <jo**@jo-nospam.com> wrote:
On Sun, 22 Feb 2004 22:45:00 GMT, Brian
<us*****@julietremblay.com.invalid> wrote:
That's a strange definition of liquid design. How about designing for
any width?

http://www.allmyfaqs.com/faq.pl?AnySizeDesign


Well, let me be a little clearer. What I want is a page with a minimum
resolution of 800 pixels (this is just an example), centered, which
works in IE also. If the width were fixed at 800 px, then it won't be
a problem. But I would like it to have max-width hof let's say 1024 or
1280. Because I have a 1600 screen, and an 800 page looks silly in
such a resolution. Moreover, if I don't set a max (or fixed) width, on
1600 the page is waaaaaaaaay too large and it looks very ugly. Is my
reasoning wrong?


Check out the page design at htmldog.com and tell me if it won't work in
all the viewport sizes you listed and then some.
Jul 20 '05 #7
On Mon, 23 Feb 2004 03:49:36 -0500, Neal <ne*****@spamrcn.com> wrote:
Check out the page design at htmldog.com and tell me if it won't work in
all the viewport sizes you listed and then some.


Sure it does. But it has no minimum width. It looks nice in 1600*1200
but my site won't have that much content so won't look nice...
Jul 20 '05 #8
On Mon, 23 Feb 2004 09:37:02 +0100, Els <el*********@tiscali.nl>
wrote:
not really, except for the minimum width :-)
Why don't you use a percentage for the left and right margins?
Let's say 10% on each side, container div of 80% in the
middle. See if that does what you want :-)
In addittion you can set a minimum width of let's say 600px,
but that won't work in IE.


Well wouldn't it be possible to have the left and right navs be fixed
(ie 200px). And the middle content relative? I don't think it is
possible.. I'm talking about a 3-column site, with a min-width of 800
and a max-widht of 1024, centered...
Jul 20 '05 #9
Els
Jocab wrote:
On Mon, 23 Feb 2004 09:37:02 +0100, Els <el*********@tiscali.nl>
wrote:
not really, except for the minimum width :-)
Why don't you use a percentage for the left and right margins?
Let's say 10% on each side, container div of 80% in the
middle. See if that does what you want :-)
In addittion you can set a minimum width of let's say 600px,
but that won't work in IE.

Well wouldn't it be possible to have the left and right navs be fixed
(ie 200px). And the middle content relative? I don't think it is
possible..


I don't see why not?
You are talking about a centered page, in which the left and
righ columns have fixed width, and the middle stretches with
the width of the browser, and the total of the 3 together
are not allowed to exceed 1024px wide.

No problem at all, as long as you don't expect it to stop at
1024px wide in IE.
I'm talking about a 3-column site, with a min-width of 800
and a max-widht of 1024, centered...


Again, the min-width is unrealistic. Even 800x600 screens
can't show 800 wide without a scrollbar.

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #10
On Mon, 23 Feb 2004 10:26:56 +0100, Els <el*********@tiscali.nl>
wrote:
I don't see why not?
You are talking about a centered page, in which the left and
righ columns have fixed width, and the middle stretches with
the width of the browser, and the total of the 3 together
are not allowed to exceed 1024px wide.

No problem at all, as long as you don't expect it to stop at
1024px wide in IE.
Would you have an example which works? I haven't managed to do this
myself.
Again, the min-width is unrealistic. Even 800x600 screens
can't show 800 wide without a scrollbar.


The figures were just approximations. 750 will do too.
Jul 20 '05 #11
Els

Jocab wrote:
On Mon, 23 Feb 2004 10:26:56 +0100, Els <el*********@tiscali.nl>
wrote:
I don't see why not?
You are talking about a centered page, in which the left and
righ columns have fixed width, and the middle stretches with
the width of the browser, and the total of the 3 together
are not allowed to exceed 1024px wide.

No problem at all, as long as you don't expect it to stop at
1024px wide in IE.


Would you have an example which works? I haven't managed to do this
myself.


http://home.tiscali.nl/~elizabeth/jocab.html
Again, the min-width is unrealistic. Even 800x600 screens
can't show 800 wide without a scrollbar.


The figures were just approximations. 750 will do too.


I made the above example min-width:600px and max-width:1024px.

hth

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #12
On Mon, 23 Feb 2004 10:56:47 +0100, Els <el*********@tiscali.nl>
wrote:
http://home.tiscali.nl/~elizabeth/jocab.html


Impressive, thanks. Will work a little on it :) Are there any hacks to
make it work on IE?
Jul 20 '05 #13
Els

Jocab wrote:
On Mon, 23 Feb 2004 10:56:47 +0100, Els <el*********@tiscali.nl>
wrote:
http://home.tiscali.nl/~elizabeth/jocab.html


Impressive, thanks. Will work a little on it :) Are there any hacks to
make it work on IE?


Not that I know off, But you could give it a fixed width in
IE, using CSS hacks to avoid other browsers to read it, but
that would have to be a fixed width of less than 750px, and
I don't think you want over 90% of your viewers to see a
static width.

But why bother? Most people don't use 1600x1200 screens.
I have one myself, but I have it set at 1280x1024, cause it
looks better :-) (19inch)
And with two columns of 200px wide on each side, and a
margin in %, I don't think many people will find the text
too wide to read, and if so, they have encountered it
already in so many sites, that they will have become
cleverer than that, and narrowed down their browser window.

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #14
In article Els wrote:

Jocab wrote:
On Mon, 23 Feb 2004 10:56:47 +0100, Els <el*********@tiscali.nl>
wrote:
http://home.tiscali.nl/~elizabeth/jocab.html
Impressive, thanks. Will work a little on it :) Are there any hacks to
make it work on IE?


I would rather call it elementary. Not becasue it is bad, but because it
is pretty simple.
Not that I know off, But you could give it a fixed width in
IE, using CSS hacks to avoid other browsers to read it, but
that would have to be a fixed width of less than 750px, and
I don't think you want over 90% of your viewers to see a
static width.
http://www.svendtofte.com/code/max_width_in_ie/
But why bother? Most people don't use 1600x1200 screens.
I have one myself, but I have it set at 1280x1024, cause it
looks better :-) (19inch)


I have done that because I have lousy graphics card. But I never run
browser fullscreen, not even on 800*600. I used browser on 800*600 for 2
years only making it fullscreen about twice a month.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #15
In article Jocab wrote:
On Mon, 23 Feb 2004 03:49:36 -0500, Neal <ne*****@spamrcn.com> wrote:
Check out the page design at htmldog.com and tell me if it won't work in
all the viewport sizes you listed and then some.
Sure it does. But it has no minimum width.


That is becasue minimum width is hardly ever useful. In fact, it is most
often harmful. Google old posts by me, if you can't figure it out
yourself. You could for example try 400px wide window (on low res
screen), and then think again if min-width of 800px makes sence.
It looks nice in 1600*1200
but my site won't have that much content so won't look nice...


If your problem is not having content, it is not really good reason to
make it break down to hide that.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #16
Jocab wrote:
On Sun, 22 Feb 2004 22:45:00 GMT, Brian wrote:
That's a strange definition of liquid design. How about designing
for any width?

http://www.allmyfaqs.com/faq.pl?AnySizeDesign
Well, let me be a little clearer. What I want is a page with a
minimum resolution of 800 pixels (this is just an example),


[snip]
Actually, you were quite clear the first time. But setting widths for
content that does not require it (e.g., images) is a bad idea. And
setting widths for text content in pixels is a terrible idea.
Is my reasoning wrong?


In short, yes. Design for any size. See the link I provided.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #17
Jocab wrote:
wouldn't it be possible to have the left and right navs be fixed
(ie 200px). And the middle content relative?


Yes, it's possible. And what happens when the content of the navs
doesn't fit in a 200px wide container? Flexible design means you avoid
having your page fall apart in browsing situations outside of the one
you imagine is common.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #18
Els
Lauri Raittila wrote:
In article Els wrote:
Jocab wrote:
On Mon, 23 Feb 2004 10:56:47 +0100, Els <el*********@tiscali.nl>
wrote:

http://home.tiscali.nl/~elizabeth/jocab.html

Impressive, thanks. Will work a little on it :) Are there any hacks to
make it work on IE?
I would rather call it elementary. Not becasue it is bad, but because it
is pretty simple.
It is really, once you get the hang of it ;-)
http://www.svendtofte.com/code/max_width_in_ie/


That's very interesting, and I can make it work for the
example with the 30em, but any other amount I fill in there,
makes the width static.
Also the pixelwidth version, that which gives me a static
width as well.
It probably has to do with what my stylesheet already says,
so I'm gonna have a more indepth look at it later.
But why bother? Most people don't use 1600x1200 screens.
I have one myself, but I have it set at 1280x1024, cause it
looks better :-) (19inch)


I have done that because I have lousy graphics card. But I never run
browser fullscreen, not even on 800*600. I used browser on 800*600 for 2
years only making it fullscreen about twice a month.


Which you would for instance have had to do to view the site
you mentioned ;-)
If you were using Gecko browser that is.
It's going off the left side of the screen when the window
is narrower than about 620px.

Very interesting read though, thanks for posting the link :-)
--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #19
On Mon, 23 Feb 2004 09:15:01 GMT, Jocab <jo**@jo-nospam.com> wrote:
On Mon, 23 Feb 2004 03:49:36 -0500, Neal <ne*****@spamrcn.com> wrote:
Check out the page design at htmldog.com and tell me if it won't work in
all the viewport sizes you listed and then some.


Sure it does. But it has no minimum width. It looks nice in 1600*1200
but my site won't have that much content so won't look nice...

Well, if it's lack of content, I'd think max width would be more critical,
to avoid all that open expanse. Setting a min width would mean the outer
columns wouldn't scrunch up the middle enough.

Seeing 800px as a minimum is poor. I think it's not always possible to
have a design that is viewable down to 50px, at some point even the best
fluid designs get to be problematic. My personal rule of thumb - which is
likely overly generous for some - is to be certain the layout is good down
to 500px wide, and smaller if possible. Certainly the smaller the better.

Setting a min width which forces horizontal scrolling, and having things
begin to overlap and get weird at narrow widths - which is really worse? I
think the horizontal scrolling is.
Jul 20 '05 #20
On Mon, 23 Feb 2004 16:48:15 +0200, Lauri Raittila
<la***@raittila.cjb.net> wrote:
Not that I know off, But you could give it a fixed width in
IE, using CSS hacks to avoid other browsers to read it, but
that would have to be a fixed width of less than 750px, and
I don't think you want over 90% of your viewers to see a
static width.


http://www.svendtofte.com/code/max_width_in_ie/


That method doesn't work for the <body> tag or a style on that tag...
Jul 20 '05 #21
In article Els wrote:
Lauri Raittila wrote:
http://www.svendtofte.com/code/max_width_in_ie/


That's very interesting, and I can make it work for the
example with the 30em, but any other amount I fill in there,
makes the width static.
Also the pixelwidth version, that which gives me a static
width as well.
It probably has to do with what my stylesheet already says,
so I'm gonna have a more indepth look at it later.


I have never actually tested it much, because I have not yet find need
for use it.
I used browser on 800*600 for 2
years only making it fullscreen about twice a month.


Which you would for instance have had to do to view the site
you mentioned ;-)


No, I would have either used ctrl+f4 or ctrl+s,ctrl+s (discard
stylesheet.)
If you were using Gecko browser that is.


I'm not. It's slow and bloated browser engine, with half done CSS
support¹. And GUIs for it are usually worse. Using Opera 7.5p2.
[1] This is troll. But it is true too: user stylesheet handling is pretty
much non-existant in gecko, and as it is half of CSS...

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #22
In article Jocab wrote:
On Mon, 23 Feb 2004 16:48:15 +0200, Lauri Raittila
<la***@raittila.cjb.net> wrote:
Not that I know off, But you could give it a fixed width in
IE, using CSS hacks to avoid other browsers to read it, but
that would have to be a fixed width of less than 750px, and
I don't think you want over 90% of your viewers to see a
static width.


http://www.svendtofte.com/code/max_width_in_ie/


That method doesn't work for the <body> tag or a style on that tag...


That is because IE don't support much styling on body tag. You most
likely need to wrap everything to div...

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #23
Els
Lauri Raittila wrote:
Els wrote:
Lauri Raittila wrote:

http://www.svendtofte.com/code/max_width_in_ie/

I have never actually tested it much, because I have not yet find need
for use it.


Well, I tested the very examples given on the site, and
noticed that they work as long as no doctype is specified.
When I specify a doctype (either 4.01 strict or
transitional), IE crashes as soon as the (in this case)
min-width of 800px is reached.
So, I won't be using this trick, unfortunately :-(

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #24
Els
Neal wrote:
Setting a min width which forces horizontal scrolling, and having things
begin to overlap and get weird at narrow widths - which is really worse?
I think the horizontal scrolling is.


Depends on the layout of the page.
If I see a page with a menu on the left of 150 or 200px
wide, and I have my browser at about 500px, I'd prefer to be
able to scroll the menu to the left and be able to read the
content comfortably, than having to keep the menu in my face
and reading lines (in the content) that are half as long and
sometimes 'overlap or get weird' as you said.

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #25
In article Els wrote:
Neal wrote:
Setting a min width which forces horizontal scrolling, and having things
begin to overlap and get weird at narrow widths - which is really worse?
I think the horizontal scrolling is.


Depends on the layout of the page.
If I see a page with a menu on the left of 150 or 200px
wide, and I have my browser at about 500px, I'd prefer to be
able to scroll the menu to the left and be able to read the
content comfortably, than having to keep the menu in my face
and reading lines (in the content) that are half as long and
sometimes 'overlap or get weird' as you said.


Best is to design thing so that navigation and content won't be rendered
side by side when using narrow browser window. At least I think so.

Personally I use 500 - 550px window, and wind 2 cols side by side better
than scrolling.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #26
Els

Lauri Raittila wrote:
In article Els wrote:
Neal wrote:
Setting a min width which forces horizontal scrolling, and having things
begin to overlap and get weird at narrow widths - which is really worse?
I think the horizontal scrolling is.
Depends on the layout of the page.
If I see a page with a menu on the left of 150 or 200px
wide, and I have my browser at about 500px, I'd prefer to be
able to scroll the menu to the left and be able to read the
content comfortably, than having to keep the menu in my face
and reading lines (in the content) that are half as long and
sometimes 'overlap or get weird' as you said.


Best is to design thing so that navigation and content won't be rendered
side by side when using narrow browser window. At least I think so.


That of course would be better, for instance with a
horizontal menu at the top and/or bottom, but that limits
the variety in possible layouts quite a lot.
Or do you mean you prefer the complete 'content column' to
flip under the menu when the page gets narrower? That too is
an option, but personally I don't like blocks moving to
different places when I adjust my windowsize :-)
Personally I use 500 - 550px window, and wind 2 cols side by side better
than scrolling.


Okay :-)

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #27
In article Els wrote:
Or do you mean you prefer the complete 'content column' to
flip under the menu when the page gets narrower? That too is
an option, but personally I don't like blocks moving to
different places when I adjust my windowsize :-)


Might be. But do you adjust your window size often? To smaller than maybe
35em?
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #28
Els
Lauri Raittila wrote:
In article Els wrote:
Or do you mean you prefer the complete 'content column' to
flip under the menu when the page gets narrower? That too is
an option, but personally I don't like blocks moving to
different places when I adjust my windowsize :-)


Might be. But do you adjust your window size often? To smaller than maybe
35em?


Only sometimes, for instance if I'm doing something in an
application and want to read instructions for it on some
webpage at the same time. But usually my browser window is
wider than that.
I actually have my favourites bar on the left, which I have
quite wide (200px?), and if any page I'm viewing needs more
space than I have open, I usually click the little cross top
right of the fav bar, to instantly have 200px more :-)
Quicker than grabbing the right side (and the right one too)
to adjust the window.
But at 35em, if they put in a 200px wide menu, I wouldn't
read comfortably, and therefore close the favbar ...

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #29
Lauri Raittila <la***@raittila.cjb.net> writes:
[1] This is troll. But it is true too: user stylesheet handling is pretty
much non-existant in gecko, and as it is half of CSS...


Non-existent in Mozilla, maybe. Galeon 1.2 had excellent user CSS
support (similar to Opera 7's, but without having to hack an obscure
config file to add your own). Unfortunately Galeon 1.3 hasn't had it
reimplemented yet, but I suppose they've had more mainstream features
to work on.

--
Chris
Jul 20 '05 #30
In article Chris Morris wrote:
Lauri Raittila <la***@raittila.cjb.net> writes:
[1] This is troll. But it is true too: user stylesheet handling is pretty
much non-existant in gecko, and as it is half of CSS...
Non-existent in Mozilla, maybe. Galeon 1.2 had excellent user CSS
support (similar to Opera 7's, but without having to hack an obscure
config file to add your own).


Interesting. I was told once that the problem was in the engine, no in
UI. Or maybe it was hacked into engine code by Galeon people...
Unfortunately Galeon 1.3 hasn't had it
reimplemented yet, but I suppose they've had more mainstream features
to work on.


....this would indicate that it is not trivial thing to do.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #31
In article Els wrote:
Lauri Raittila wrote:
In article Els wrote:
Or do you mean you prefer the complete 'content column' to
flip under the menu when the page gets narrower? That too is
an option, but personally I don't like blocks moving to
different places when I adjust my windowsize :-)
Might be. But do you adjust your window size often? To smaller than maybe
35em?


Only sometimes, for instance if I'm doing something in an
application and want to read instructions for it on some
webpage at the same time. But usually my browser window is
wider than that.


So you hardly ever do that. And when you do, would it be problem if
navigation would be before or after content?
I actually have my favourites bar on the left, which I have
quite wide (200px?),
I have often another website on left, in about 200px panel. (Using Opera
7.5 + small screen mode, or good userstylesheet)
and if any page I'm viewing needs more
space than I have open, I usually click the little cross top
right of the fav bar, to instantly have 200px more :-)
Same here. Exept that I hardly ever do that ;-)
Quicker than grabbing the right side (and the right one too)
to adjust the window.
But at 35em, if they put in a 200px wide menu, I wouldn't
read comfortably, and therefore close the favbar ...


Of course you don't measure width of navbar in pixels. That would be
stupid. (If you have navbar made of images, that is already bad idea.)

It is quite possible to have mayb 15em navbar and rest for text. TExt is
usually easily readable in quite short width.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #32
Els
Lauri Raittila wrote:
In article Els wrote:
Lauri Raittila wrote:
In article Els wrote:

Or do you mean you prefer the complete 'content column' to
flip under the menu when the page gets narrower? That too is
an option, but personally I don't like blocks moving to
different places when I adjust my windowsize :-)

Might be. But do you adjust your window size often? To smaller than maybe
35em?
Only sometimes, for instance if I'm doing something in an
application and want to read instructions for it on some
webpage at the same time. But usually my browser window is
wider than that.


So you hardly ever do that. And when you do, would it be problem if
navigation would be before or after content?


Not at all, I just don't like blocks to move around while
i'm resizing the window. Like: I see a piece of text (right
next to the menu on the left) that I want to read, but I
want to resize my window. So I pick up the right border,
drag it to the left... and oops! where did my text go? Widen
again: there it is... try narrowing again: gone again.
Scroll... ah, it's gone under the menu...

Of course this is a bit exaggerated, by now I 'know' it's
probably gone under the menu. Before I ever heard of CSS
though, I would have thought the designer did a very bad job
at using html. Things 'aren't supposed' to play hide and
seek on a webpage.

With that in mind, I don't like a text block to go under the
menu. That's why I set a minimum width to the container, to
prevent that happening. Unfortunately that doesn't work for
IE, and as I don't want to use tables, I'll just have to
live with the knowledge that 'somewhere, someone' is looking
for the disappearing text block. ;-)
I actually have my favourites bar on the left, which I have
quite wide (200px?),


I have often another website on left, in about 200px panel. (Using Opera
7.5 + small screen mode, or good userstylesheet)


Hmm... that's an idea I didn't think of before. Especially
if it's just information you need, that's an excellent way
of having it 'handy' on the side.
Thanks :-)
and if any page I'm viewing needs more
space than I have open, I usually click the little cross top
right of the fav bar, to instantly have 200px more :-)


Same here. Exept that I hardly ever do that ;-)
Quicker than grabbing the right side (and the right one too)
to adjust the window.
But at 35em, if they put in a 200px wide menu, I wouldn't
read comfortably, and therefore close the favbar ...


Of course you don't measure width of navbar in pixels. That would be
stupid. (If you have navbar made of images, that is already bad idea.)


True, I use ems for that, but 'they' more often than not, do
indeed set a width in pixels, but then again, I hardly ever
change the font-size, so I usually don't notice the difference.
It is quite possible to have mayb 15em navbar and rest for text. TExt is
usually easily readable in quite short width.


I've heard different ideas about that in the past couple of
days, but for me personally, it depends on how much text and
how narrow exactly. With a menu of only 15em, I don't think
I would complain about the text next to it being too narrow
to read comfortably.
--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #33

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

Similar topics

0
1936
by: VRandy | last post by:
Example: http://pages.prodigy.net/randyv/centerprb.htm The desired effect is a fixed width left margin with a fixed width div centered in the right side. If the browser is resized to become very...
5
2478
by: Haines Brown | last post by:
I want a centered body, 680px wide, having a red bottom margin. The following works well in galeon, but not in IE5, where the bottom margin steals the full width of the viewpoint. That is, the red...
7
10104
by: DaWoE | last post by:
Hi, I want to place a div centered of another div in IE. I get this to work in Mozilla, but not in IE. The code i use for mozilla is the following : <html> <head> <style type="text/css">
2
5473
by: David Winter | last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it. I want a centered DIV with a fixed width between two other DIVs that should fill the rest of the window/viewport (= 100%). How...
4
9719
by: Mimo Zus | last post by:
I'm hoping that someone can explain what's going on; better yet provide a workaround. I'm designing a centered CSS site based on a 550 pixel wide vertical background image. Onto this background...
17
2245
by: Stian Lund | last post by:
Hello, I've been struggling with this problem for a while now, so I though I'd get some input from anyone more skilled with CSS than I am. I'm actually trying to accomplish two things with this:...
6
2220
by: hiervision | last post by:
Hi I have a question about a CSS menu. I've got a 700 pixel table centered in the body of my page. The table scrolls quite a ways down. I would like to place a menu flush against the right...
9
2499
by: Troy Piggins | last post by:
If I use the code: ----- <div style="text-align: center;"> <a href="photos.php?img=xx1.jpg"> <img src="xx1.jpg" style="padding: 10px;" /> </a> <a href="photos.php?img=xx2.jpg">
7
2000
by: TheLongshot | last post by:
I just recently converted a few pages of my application to using master pages. Problem is, in all of my content pages, the contents are centered. I can't figure out why. The markup in the...
3
2302
by: gentsquash | last post by:
I'm trying to display a paragraph that has a centered phrase, such as this one, in the middle of the paragraph. An example is the section "End of semester project" on my course-page ...
0
7218
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,...
0
7103
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
7307
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
7370
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...
1
7021
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...
0
4701
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...
0
3188
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...
0
1532
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 ...
0
409
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...

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.