473,396 Members | 1,927 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,396 software developers and data experts.

Right-floated image height

A perennial problem; apologies if people are sick of this one. I have a
dynamic-width page with stripes on the left and the right; the left
stripe is defined in "body {background:}", while the right stripe is in a
right-floated div.

Has anyone come up with a method to make a right-floated image run the
full height of the document? Both Mozilla and IE(5, probably 6) take
"height: 100%" to mean "100% of the viewport height". Scroll down, and
the stripe just ends there in the middle of the document.

I'm to the point of defining "height: 250%" and such, but that can make
for a heckuva lot of white space at the bottom, depending on font size,
window size, and the phase of the moon. Any better ideas?

Have a look:
http://www.foogod.com/~torquill/test...index_new.html
stylesheet at ./index_import.css (Warning: kludge zone still in effect!)

I can't decide whether this or the "background: fixed" bug costs me more
hair. Thank heavens I'm not trying to do both....

--Alison
Jul 20 '05 #1
3 1992
On Fri, 17 Oct 2003 06:41:45 GMT, "Alison Stewart"
<sp*********@foogod.com> wrote:
A perennial problem; apologies if people are sick of this one. I have a
dynamic-width page with stripes on the left and the right; the left
stripe is defined in "body {background:}", while the right stripe is in a
right-floated div.

Has anyone come up with a method to make a right-floated image run the
full height of the document? Both Mozilla and IE(5, probably 6) take
"height: 100%" to mean "100% of the viewport height". Scroll down, and
the stripe just ends there in the middle of the document.

I'm to the point of defining "height: 250%" and such, but that can make
for a heckuva lot of white space at the bottom, depending on font size,
window size, and the phase of the moon.
Too true.
Any better ideas?


Yes, I think so. This does indeed get asked from time to time, so I've
borrowed your stripes to knock up a quick demo:

http://www.xs4all.nl/~sbpoley/webmatters/layout5.html

It uses nested DIVs rather than floats.

HTH

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #2
On Fri, 17 Oct 2003 17:53:27 +0200, Stephen Poley
<sb******************@xs4all.nl> wrote:
Yes, I think so. This does indeed get asked from time to time, so I've
borrowed your stripes to knock up a quick demo:

http://www.xs4all.nl/~sbpoley/webmatters/layout5.html

It uses nested DIVs rather than floats.


Exactly what I was looking for -- thanks, Stephen. I had to mess with the
right margin a little, but it's perfect now.

Thanks for the reply.

Alison
------
http://www.painters-wing.com
Jul 20 '05 #3
On Sat, 18 Oct 2003 00:54:43 GMT, "Alison Stewart"
<sp*********@foogod.com> wrote:
On Fri, 17 Oct 2003 17:53:27 +0200, Stephen Poley
<sb******************@xs4all.nl> wrote:
Yes, I think so. This does indeed get asked from time to time, so I've
borrowed your stripes to knock up a quick demo:

http://www.xs4all.nl/~sbpoley/webmatters/layout5.html

It uses nested DIVs rather than floats.
Exactly what I was looking for -- thanks, Stephen. I had to mess with the
right margin a little, but it's perfect now.
I forgot to mention that I noticed your stripes_right wasn't quite a
mirror-image of your stripes_left, so I produced a new version by
flipping stripes_left. That would cause the margin difference.
Thanks for the reply.


You're welcome.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #4

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

Similar topics

8
by: Bo Wisén | last post by:
Hi, A project in VB6 recently worked without any problems but now it's complaining when I try to use 'Right$'. In immediate mode, when I'm typing 'print left$("123456",2)' I get the correct...
8
by: André Hänsel | last post by:
Hi! When I put a table into a table and try to align it right, it works in IE but not in Firefox. Simplest code to reproduce: <html> <body> <table style="width: 100%"> <tr>
22
by: Simon | last post by:
Hi, I have written a function to trim char *, but I have been told that my way could be dangerous and that I should use memmove(...) instead. but I am not sure why my code could be 'dangerous'...
26
by: rkleiner | last post by:
Is there a regular expression to find the first unmatched right bracket in a string, if there is one? For example, "(1*(2+3))))".search(/regexp/) == 9 Thanks in advance.
3
by: deanfamily11 | last post by:
Ok, here's another problem I'm having. I've tried several different things, but I just can't get anything to be right justified. Any thoughts? #include <iostream> #include <iomanip>...
5
by: tshad | last post by:
I have a datagrid that I cannot get to right justify a money amount (which is just a label). No matter what I do - it still right justifies it. <asp:TemplateColumn Visible="true"...
12
by: Dio1080 | last post by:
Ok, I need help on a for loop nested program using for loops, I'm trying to use a patten that goes like this: 123456 12345 1234 123 12 1 but when I try it, it goes like this: 123456
2
by: Berlin Brown | last post by:
This is a simple div/layout question. I could easily solve the problem with a table, but I don't want to do that. I have a row of links. I want row 1 to have links and row 2 to have links. I...
3
by: happyse27 | last post by:
Hi All, I wanted to align the text box for user registration but the code just wont budge... Kindly advise what is wrong? Cheers... Andrew <HTML>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
tracyyun
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...

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.