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. 5 6468 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)
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. 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)
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. 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 "bodybackgr ond" 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) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 have the same name and reside in the following
physical path structure:
|
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 stripe is there, but Gecko only draws it for the
initial viewport and chops it off if one scrolls down. MSIE stops
drawing the background color at the end of the last link on the left side.
I've messed around with the stylesheet to no end, and...
|
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 |
+---+---+
|
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 to stripe sets when doing a redirect database restore? Will
a new tablespace map be created by this and thus override the existing
|
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 are hovered
over I want them to be coloured in. I thought the easiest way to do
this would be to change the background image of the entire map (since
it's a bit of a pain trying to select each piece out of the image and
| |
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 the height set
to 'auto'. However, I've always wanted to do this the right way and was
hoping someone could help me and/or point me to a good tutuorial
creating infinity backgrounds with nested <div>'s.
The page I'm working on can be found at
|
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 image is
suddenly gone from the bottom.
#background {
position: absolute;
top: 0px;
bottom: 0px;
left: 50%;
|
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 layered DIVs I had were no longer showing up correctly. I had this going fine for several hours -- it wasn't a happy accident I forgot to save. I'm totally mystified on this one.
Here's the summary: I want #container to be under #containerbranch, so...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |