473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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

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.

Jul 21 '05 #1
5 6456
se*****@hotmail.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.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #2
Jim Moe wrote:
se*****@hotmail.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.

Jul 21 '05 #3
se*****@hotmail.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.

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)
Jul 21 '05 #4
Jim Moe wrote:
se*****@hotmail.com wrote:
Try a fixed width "sitemenu" div. You have it set to 14em which, ofcourse, 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.
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.

Jul 21 '05 #5
se*****@hotmail.com wrote:

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)
Jul 21 '05 #6

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

Similar topics

2
by: Markus Mohr | last post by:
Hi, everyone, I have a special problem: For every monitor resolution in 200 pixel steps from 800 to 1600 pixels I have an image to be shown as centered background-image. Those images all...
1
by: Jordan Peterson | last post by:
I'm trying to put a vertical blue stripe with a black border on this page that will remain colored even if the page is scrolled in the UA. http://maba.org/new/homeproducts/ As you can see, the...
3
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
1
by: Erik Hendrix | last post by:
Hi, I have some questions related to stripe sets that I'm hoping someone here can answer. 1) What happens to stripe sets when doing a database restore? Do they stay as is? 2) What happens...
2
by: chris_culley | last post by:
Hi there, I've got a gif with (highly) irregular shapes (lots of jigsaw pieces) that I want to map so that each piece is a link... The pieces are currently just a frame drawing, but as they...
2
by: acorn71 | last post by:
Hello, I have a background image that needs to continue to infinity. Currently, I have a band-aid solution where I've made my background image 3000px and kept it pretty small in file size with...
3
by: KNDesign | last post by:
I've set a background image to repeat-y and at 100% height. It appears fine when I open the window, but when I resize to a smaller height so that I must scroll down to see the rest, the background...
2
by: rigiditymodulus | last post by:
Hi - So, I had this working perfectly, then had a small crash (the transmitter for my wireless mouse occassionally freaks out my MacBook Pro) and when I rebooted and opened up my file the two...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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
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,...

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.