HighDots Forums  

Margins and small screens

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Margins and small screens in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hendrik Maryns
 
Posts: n/a

Default Margins and small screens - 10-15-2008 , 04:36 AM






Hi,

Once again I’d like some feedback on the site
http://www.weltladen-tuebingen.de. The situation is the following: I,
as a real computer freak, have a Big Screen. The lady who is
responsible for the content of the page, however, uses DreamWeaver and
has a small laptop. For her, the page doesn’t look so nice because the
last button on the navigation area is wrapped always. This is due to
the margin specifications in body and in #content. If I leave these
out, however, it doesn’t look as nice on my screen. Is there some
standard solution for this? Like, have the margins shrink if the
viewport gets smaller? Maybe I should just do a horizontal centering of
the #content?

I think I want to get rid of those image-buttons and just put some real
text there. Maybe that would help. A test version at
http://tcl.sfs.uni-tuebingen.de/~hendrik/Weltladen%20website/WebContent/
tells me that that would help, but the problem persists.

Grateful for any suggestions!
H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: Margins and small screens - 10-15-2008 , 05:33 AM






In article <gd4a1u$ota$1 (AT) newsserv (DOT) zdv.uni-tuebingen.de>,
Hendrik Maryns <gtw37bn02 (AT) sneakemail (DOT) com> wrote:

Quote:
Once again I’d like some feedback on the site
http://www.weltladen-tuebingen.de. The situation is the following: I,
as a real computer freak, have a Big Screen. The lady who is
responsible for the content of the page, however, uses DreamWeaver and
has a small laptop. For her, the page doesn’t look so nice because the
last button on the navigation area is wrapped always.
More than one button wraps on my screen at a convenient browser size, it
looks fine!

But best thing to do in this situation is to make the navigation a
horizontal list, to use real HTML text and style for that white text on
orange rectangle look. Your images absolutely cry out to be replaced so,
there is nothing about them much that is essentially graphic. Plus you
gain a lot because you can control the relative text size a bit, the
paddings can be in % terms meaning they shrink the more the window is
shrunk widthwise... and other benefits.

--
dorayme


Reply With Quote
  #3  
Old   
Hendrik Maryns
 
Posts: n/a

Default Re: Margins and small screens - 10-15-2008 , 05:44 AM



dorayme schreef:
Quote:
In article <gd4a1u$ota$1 (AT) newsserv (DOT) zdv.uni-tuebingen.de>,
Hendrik Maryns <gtw37bn02 (AT) sneakemail (DOT) com> wrote:

Once again I’d like some feedback on the site
http://www.weltladen-tuebingen.de. The situation is the following: I,
as a real computer freak, have a Big Screen. The lady who is
responsible for the content of the page, however, uses DreamWeaver and
has a small laptop. For her, the page doesn’t look so nice because the
last button on the navigation area is wrapped always.

More than one button wraps on my screen at a convenient browser size, it
looks fine!
Ah, the thing is she doesn’t like it that it is wrapped!

Quote:
But best thing to do in this situation is to make the navigation a
horizontal list,
Why? Or do I understand you wrongly, do you mean I should put it in an
<ul> and style that list to be flat? How would I do that?
display:inline on both ul and li?

to use real HTML text and style for that white text on
Quote:
orange rectangle look. Your images absolutely cry out to be replaced so,
there is nothing about them much that is essentially graphic. Plus you
gain a lot because you can control the relative text size a bit, the
paddings can be in % terms meaning they shrink the more the window is
shrunk widthwise... and other benefits.
As I did on the test page. You’re right, thanks.

H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html


Reply With Quote
  #4  
Old   
Bergamot
 
Posts: n/a

Default Re: Margins and small screens - 10-15-2008 , 10:59 AM




Hendrik Maryns wrote:
Quote:
http://www.weltladen-tuebingen.de. The situation is the following: I,
as a real computer freak, have a Big Screen. The lady who is
responsible for the content of the page, however, uses DreamWeaver and
has a small laptop. For her, the page doesn’t look so nice because the
last button on the navigation area is wrapped always.

Ah, the thing is she doesn’t like it that it is wrapped!
Does she think horizontal scrolling is preferable? If so, please try to
explain that that would be bad usability, and the site is for the
benefit of her visitors, not just her. What would be even better is to
abandon the pictures of text for the navigation and use styled plain
text instead. It's not only better for users, because the text will
scale with the visitor's preferred font size, but also better for search
engines. Plain text rules.

BTW, you have failed to set a page background color. My browser default
background is not white, and it shows.

--
Berg


Reply With Quote
  #5  
Old   
Jim Moe
 
Posts: n/a

Default Re: Margins and small screens - 10-15-2008 , 04:03 PM



On 10/15/08 01:36 am, Hendrik Maryns wrote:
Quote:
Once again I’d like some feedback on the site
http://www.weltladen-tuebingen.de. [...]
Is there some
standard solution for this? Like, have the margins shrink if the
viewport gets smaller? Maybe I should just do a horizontal centering of
the #content?

Yes. Use percentages to set the horizontal margins and padding.
You could also set the width of the buttons using percentage. The
obvious problem, then, is that eventually the size would shrink enough for
text to wrap within the button.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #6  
Old   
dorayme
 
Posts: n/a

Default Re: Margins and small screens - 10-15-2008 , 11:17 PM



In article <gd4e20$u7m$1 (AT) newsserv (DOT) zdv.uni-tuebingen.de>,
Hendrik Maryns <gtw37bn02 (AT) sneakemail (DOT) com> wrote:

Quote:
dorayme schreef:
In article <gd4a1u$ota$1 (AT) newsserv (DOT) zdv.uni-tuebingen.de>,
Hendrik Maryns <gtw37bn02 (AT) sneakemail (DOT) com> wrote:

Once again I’d like some feedback on the site
http://www.weltladen-tuebingen.de. The situation is the following: I,
as a real computer freak, have a Big Screen. The lady who is
responsible for the content of the page, however, uses DreamWeaver and
has a small laptop. For her, the page doesn’t look so nice because the
last button on the navigation area is wrapped always.

More than one button wraps on my screen at a convenient browser size, it
looks fine!

Ah, the thing is she doesn’t like it that it is wrapped!

Well, she is not the intended user of the site... but never mind, if she
is another she who must be obeyed, then consider the other thing I said
about getting rid of fixed width images for the navigation, take a guess
at what someone who needs to look at websites at one click text size up
from normal and measure how many px or ems are involved till one of the
menu items wraps and specify a minimum width for the menu. That is as
about as good as you can do if she must be obeyed!


Quote:
But best thing to do in this situation is to make the navigation a
horizontal list,

Why? Or do I understand you wrongly, do you mean I should put it in an
ul> and style that list to be flat? How would I do that?
display:inline on both ul and li?
Yes, you use display: inline. There are many examples, Google up for
one. key things are perhaps:

li {
display: inline;
list-style: none;
}

Carefully style the li further to suit and especially the link elements
that go inside.

Quote:
to use real HTML text and style for that white text on
orange rectangle look. Your images absolutely cry out to be replaced so,
there is nothing about them much that is essentially graphic. Plus you
gain a lot because you can control the relative text size a bit, the
paddings can be in % terms meaning they shrink the more the window is
shrunk widthwise... and other benefits.

As I did on the test page. You’re right, thanks.

H.
--
dorayme


Reply With Quote
  #7  
Old   
Hendrik Maryns
 
Posts: n/a

Default Re: Margins and small screens - 10-25-2008 , 07:26 AM



Op 15-10-08 22:03 heeft Jim Moe als volgt van zich laten horen:
Quote:
On 10/15/08 01:36 am, Hendrik Maryns wrote:
Once again I’d like some feedback on the site
http://www.weltladen-tuebingen.de. [...]
Is there some
standard solution for this? Like, have the margins shrink if the
viewport gets smaller? Maybe I should just do a horizontal centering of
the #content?

Yes. Use percentages to set the horizontal margins and padding.
Thanks, this works wonderfully.

Quote:
You could also set the width of the buttons using percentage. The
obvious problem, then, is that eventually the size would shrink enough for
text to wrap within the button.
width: 12.5% on the buttons doesn’t seem to have any effect, but it
looks fine like it is, so don’t bother. I’ll ask again about this if I
get to need it ;-)

Thanks also to all others for the suggestions.
H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
www.lieverleven.be
http://catb.org/~esr/faqs/smart-questions.html


Reply With Quote
  #8  
Old   
Hendrik Maryns
 
Posts: n/a

Default Re: Margins and small screens - 10-25-2008 , 07:28 AM



Op 16-10-08 05:17 heeft dorayme als volgt van zich laten horen:
Quote:
In article <gd4e20$u7m$1 (AT) newsserv (DOT) zdv.uni-tuebingen.de>,
Hendrik Maryns <gtw37bn02 (AT) sneakemail (DOT) com> wrote:

dorayme schreef:
In article <gd4a1u$ota$1 (AT) newsserv (DOT) zdv.uni-tuebingen.de>,
Hendrik Maryns <gtw37bn02 (AT) sneakemail (DOT) com> wrote:

Once again I’d like some feedback on the site
http://www.weltladen-tuebingen.de. The situation is the following: I,
as a real computer freak, have a Big Screen. The lady who is
responsible for the content of the page, however, uses DreamWeaver and
has a small laptop. For her, the page doesn’t look so nice because the
last button on the navigation area is wrapped always.
More than one button wraps on my screen at a convenient browser size, it
looks fine!
Ah, the thing is she doesn’t like it that it is wrapped!


Well, she is not the intended user of the site... but never mind, if she
is another she who must be obeyed,
Luckily, she is not, and I am teaching her about web design and
accessability, but she is the one whose good taste I trust more than mine!

Quote:
then consider the other thing I said
about getting rid of fixed width images for the navigation, take a guess
at what someone who needs to look at websites at one click text size up
from normal and measure how many px or ems are involved till one of the
menu items wraps and specify a minimum width for the menu. That is as
about as good as you can do if she must be obeyed!


But best thing to do in this situation is to make the navigation a
horizontal list,
Why? Or do I understand you wrongly, do you mean I should put it in an
ul> and style that list to be flat? How would I do that?
display:inline on both ul and li?

Yes, you use display: inline. There are many examples, Google up for
one. key things are perhaps:

li {
display: inline;
list-style: none;
}
Funnyly, display:inline seems to suffice, the list markers are
automatically hidden then.

Cheers, H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
www.lieverleven.be
http://catb.org/~esr/faqs/smart-questions.html


Reply With Quote
  #9  
Old   
Bergamot
 
Posts: n/a

Default Re: Margins and small screens - 10-25-2008 , 10:32 AM




Hendrik Maryns wrote:
Quote:
Op 16-10-08 05:17 heeft dorayme als volgt van zich laten horen:

li {
display: inline;
list-style: none;
}

Funnyly, display:inline seems to suffice, the list markers are
automatically hidden then.
In some browsers, no doubt, but that doesn't mean it's true for all
browsers.

--
Berg


Reply With Quote
  #10  
Old   
Ben C
 
Posts: n/a

Default Re: Margins and small screens - 10-25-2008 , 12:29 PM



On 2008-10-25, Bergamot <bergamot (AT) visi (DOT) com> wrote:
Quote:
Hendrik Maryns wrote:
Op 16-10-08 05:17 heeft dorayme als volgt van zich laten horen:

li {
display: inline;
list-style: none;
}

Funnyly, display:inline seems to suffice, the list markers are
automatically hidden then.

In some browsers, no doubt, but that doesn't mean it's true for all
browsers.
No doubt, but it is true for all conforming browsers.


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 - 2009, Jelsoft Enterprises Ltd.