HighDots Forums  

Background stripe 100% of document? Last piece of the jigsaw...

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


Discuss Background stripe 100% of document? Last piece of the jigsaw... in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
seajays@hotmail.com
 
Posts: n/a

Default Background stripe 100% of document? Last piece of the jigsaw... - 03-08-2005 , 04:11 AM






OK, I've managed to get just about everything working in CSS and XHTML,
but there is one last peice of the jigsaw.

http://www.seajays.org.uk/2know_dev/

At the moment on the site, I have a gray striped background behind the
left hand menu. This was achieved using a body background image.

It looks OK, until you change the size of the text in the browser (i.e.
larger, smaller etc), and then the menu items start to float out past
the edge of the background image (because the image is a fixed width).

Here's what I've tried:

1) Creating a div in the background, or putting an image in the
background of the menu area;
Problem: can't get it to be 100% of the document (only the viewport)

2) Creating the background image as *all* stripes over the whole screen
and having a white background for the content area;
Problem: on high resolution displays, when maximised the whole width
of the bottom of the screen ends up covered in the stripey background.

Any suggestions about ways to achieve this? I've looked around and it
seems 100% of document is very difficult to achieve (Out of interest,
is this an ommission in CSS? Does CSS3 address this?)

Cheers,
Colin.


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

Default Re: Background stripe 100% of document? Last piece of the jigsaw... - 03-08-2005 , 11:57 AM






seajays (AT) hotmail (DOT) com wrote:
Quote:
At the moment on the site, I have a gray striped background behind the
left hand menu. This was achieved using a body background image.

It looks OK, until you change the size of the text in the browser (i.e.
larger, smaller etc), and then the menu items start to float out past
the edge of the background image (because the image is a fixed width).

Try a fixed width "sitemenu" div. You have it set to 14em which, of
course, expands with font size.

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


Reply With Quote
  #3  
Old   
seajays@hotmail.com
 
Posts: n/a

Default Re: Background stripe 100% of document? Last piece of the jigsaw... - 03-08-2005 , 05:27 PM



Jim Moe wrote:
Quote:
seajays (AT) hotmail (DOT) com wrote:

At the moment on the site, I have a gray striped background behind
the
left hand menu. This was achieved using a body background image.

It looks OK, until you change the size of the text in the browser
(i.e.
larger, smaller etc), and then the menu items start to float out
past
the edge of the background image (because the image is a fixed
width).

Try a fixed width "sitemenu" div. You have it set to 14em which,
of
course, expands with font size.

Thanks - this is certainly a possibility, but as the text in the menu
increases in size it will start to wrap onto two lines, which I'd
prefer to avoid. If possible I'd like the width to expand along with
it, so that the whole page stays in proportion.

Cheers,
Colin.



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

Default Re: Background stripe 100% of document? Last piece of the jigsaw... - 03-09-2005 , 01:22 PM



seajays (AT) hotmail (DOT) com wrote:
Quote:
Try a fixed width "sitemenu" div. You have it set to 14em which, of
course, expands with font size.

Thanks - this is certainly a possibility, but as the text in the menu
increases in size it will start to wrap onto two lines, which I'd
prefer to avoid. If possible I'd like the width to expand along with
it, so that the whole page stays in proportion.

You have a very generous menu area. The text doesn't wrap until a 170%
font size increase. By then other font-related spacing has distorted your
layout significantly.
Live with the text wrap, or set the "sitemenu" div to
"white-space:nowrap", or use single word menu text.

Aside: Your font choices (verdana, tahoma, georgia, times new) are
Windows-only. Is this intentional?

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


Reply With Quote
  #5  
Old   
seajays@hotmail.com
 
Posts: n/a

Default Re: Background stripe 100% of document? Last piece of the jigsaw... - 03-09-2005 , 04:03 PM



Jim Moe wrote:
Quote:
seajays (AT) hotmail (DOT) com wrote:

Try a fixed width "sitemenu" div. You have it set to 14em which,
of
course, expands with font size.

Thanks - this is certainly a possibility, but as the text in the
menu
increases in size it will start to wrap onto two lines, which I'd
prefer to avoid. If possible I'd like the width to expand along
with
it, so that the whole page stays in proportion.

You have a very generous menu area. The text doesn't wrap until a
170%
font size increase. By then other font-related spacing has distorted
your
layout significantly.
Live with the text wrap, or set the "sitemenu" div to
"white-space:nowrap", or use single word menu text.
Thanks - I think you are right here - I will have a go at fixing the
width of the menu.

Quote:
Aside: Your font choices (verdana, tahoma, georgia, times new) are

Windows-only. Is this intentional?

I mainly want Verdana and the Copperplate (the graphic designers
specified these). Hence Copperplate is also an embedded font for IE on
PCs in case it is not installed. I thought this was a reasonable
compromise, otherwise we may have had to go for graphic images instead.

I understand these fonts are actually available for all the platforms;
PC/Mac/Unix, however of course if they aren't installed there's a
problem - in which case I am less concerned about what fonts are being
used.

I then just specified some general fonts, like Georgia etc. some of
which are also all platforms according to the font surveys here
http://www.codestyle.org/css/font-family/index.shtml

Cheers,
Colin.



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

Default Re: Background stripe 100% of document? Last piece of the jigsaw... - 03-09-2005 , 06:59 PM



seajays (AT) hotmail (DOT) com wrote:
Quote:
You have a very generous menu area. The text doesn't wrap until a 170%
font size increase. By then other font-related spacing has distorted
your layout significantly.
Live with the text wrap, or set the "sitemenu" div to
"white-space:nowrap", or use single word menu text.

Thanks - I think you are right here - I will have a go at fixing the
width of the menu.

You could change the "bodybackgrond" div's left position to match the
sitemenu div's width, too. The boundary between the menu and main content
stays fixed while the text adjusts around it.

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


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.