Thanks,
Murray and Kevin
Murray,
I have been checking against your code many times.
I have been commenting rather than removing code that doesn't work, and then
checking back against how you did it. I then maybe restore one piece of
commented code at a time, recheck it. etc.
I think I now have it solved (of course, I have said that before, so I hope
I don't jinx myself)
This is my CSS
body {
background-color: #d0edda; /* a light greeen */
background-image: url("images/display/parchmnt.gif");
background-repeat: repeat-y;
font-family: verdana,arial,helvetica,sans-serif;
font-size: 81.25%;
text-align: left;
padding: 0;
margin: 0 auto;
}
a img {border-style: none;
float: left;}
..gardbg {
background-image: url("images/display/04-08-24-1-bird-bath.jpg");
background-repeat: repeat;
background-attachment: fixed;
}
#header , #left
{
background-color: #f2efd9; /* parchment */
background-image: url("images/display/parchmnt.gif");
}
#left {float: left; width: 14%;}
#right {float: left; width: 86%;
background-image:
url("
http://tandcl.homemail.com.au/newweb/images/display/04-08-24-1-bird-bath.jpg");
}
#footer {/* not used
clear:both;
left: 0;
vertical-align:bottom; */}
The HTML is
<!-- Start of Header Division -->
<div id="header">
<!-- Header code -->
</div>
<!-- End of Header Division -->
<!-- Start of Left Division -->
<div id="left">
<!-- Left (menu) code -->
</div>
<!-- End of Left Division -->
<!-- Start of Right Division -->
<div id="right" class="gardbg">
<script type="text/javascript">breadCrumbs()</script><br /><br />
<!-- Main Code Starts here -->
<!-- Main code. May contain other <div>s but all are closed -->
<!-- Main Code Ends here -->
<div id="footer" align="center">
<input type="button" value="Home" class="hidden"
onclick="location.href='index.html'"/>
</div>
</div>
<!-- End Right Division-->
I found a few tricks
1. By adding the parchment background to the body, #header and #left, it
displays just as if there were two frames #header and #left with that
background image.
Previously, the background only extended down the #left <div> as far as the
text in that <div>. Now it occupies the entire depth. Of course, I had to
make it as wide as the left <div>.
2. I added a background colour to the #header and #left <div>s that matches
the parchment colour. This allows for cases where resizing the browser
window causes the <div> to get too narrow or too shallow. The other
background is then presented, almost seamlessly.
3. Adding the garden background to the #right <div> causes behaviour that is
*almost* as if that background were the body background image.
Almost, but not quite. It only extends as far as the text in that <div>,
which varies from page to page.
What I would love to solve is how to extend this image to the same height
(depth actually) as the parchment background, i.e. the entire window. In the
meantime, I have tried to add a coloured background which matches as closely
as I can to the major colour of the image. It isn't a perfect match, so I
may keep trying.
I added a footer <div> but in testing it, it did nothing so this is not the
solution.
4. I used *no* position spec, either absolute or relative in the CSS
5. The #left and #right <div> have widths specified in % that add to 100%
It looks so simple, but any change (e.g adding different widths, start
positions, or position: absolute/relative specs) can throw it out quite
badly.
If you really want I'll show you how to do a real minimum width....
This would be great, but I have to careful, as I said above. A small change
can have drastic results.
But perhaps using "min-width" would fix it.
Maybe, but I found that I have to use % widths. Can I use min-width with a %
spec.
If so, what ?
I used 14% and 86% for my 2 <div>s. Should one set them to low values ?
Also, it wouldn't work in IE, I guess
I'll post my altered code to
http://tandcl.homemail.com.au/newweb after I
post this