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

height 100% problem-Mac Safari and IE 5.2

I have a layout that has a fixed size #container <div> with a shadow
running along the right side that encloses the content area. I would
like the shadow background to extend to the full height of the page,
not just the viewport. Here is some code:
html, body {
height: 100%;
margin: 0;
padding: 0;
border: 0;
}

#container {
position: absolute;
top: 0;
left: 0;
width: 764px;
height: 100%;
background: #fff url(images/shadow_side.gif) top right repeat-y;
}
html>body #container {height:auto}

The page displays how I would like it to in Win IE 5, 5.5, 5 & Win
NN7, Win Opera 7, Win Mozilla as well as Mac NN7, Opera 6.

Problems with Mac Safari and IE 5.2. content area and background do
not extend to the bottom of viewport or bottom of page if scrolling is
needed. Test page can be seen here:

http://homepage.mac.com/pmleblanc/test.html

Any ideas why this isn't working?
Jul 20 '05 #1
1 11215
Els
Ron Bott wrote:
I have a layout that has a fixed size #container <div> with a shadow
running along the right side that encloses the content area. I would
like the shadow background to extend to the full height of the page,
not just the viewport. Here is some code:
html, body {
height: 100%;
margin: 0;
padding: 0;
border: 0;
}

#container {
position: absolute;
top: 0;
left: 0;
width: 764px;
height: 100%;
background: #fff url(images/shadow_side.gif) top right repeat-y;
}
html>body #container {height:auto}

The page displays how I would like it to in Win IE 5, 5.5, 5 & Win
NN7, Win Opera 7, Win Mozilla as well as Mac NN7, Opera 6.

Problems with Mac Safari and IE 5.2. content area and background do
not extend to the bottom of viewport or bottom of page if scrolling is
needed. Test page can be seen here:

http://homepage.mac.com/pmleblanc/test.html

Any ideas why this isn't working?


Because your container is set to height 100%, which I think
is rendered as 100% of the viewport. If you set it to 800px
for instance, also the background image will extend to that
height, (I think).
Another option: make the img itself 1000px high, no-repeat.
As long as it's a background image, this won't influence the
scrollbars.

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #2

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

Similar topics

11
by: Not4u | last post by:
Hello, I have a problem with CSS code. I want to have one menu column with a fixed width and a 100% height and the rest of the page for content. ---------------- |.|.|<--100%-->|...
5
by: Secret Guy | last post by:
Because of my experience posting various places over the last couple of weeks: I'm expecting to be greated with hostility for asking about concepts instead of "practical" things, since that has...
3
by: TheXenocide | last post by:
Hello, First and foremost I'll describe a bit about my problem: I'm trying to make a site layout using ASP.NET 2.0 in Visual Studio .NET 2005 Beta 2. The site is a table based layout that is...
0
by: rocketmonkeys | last post by:
The below mangled garbage is a fixed text illustration. I'll try to describe the problem. This is a general web layout problem I've had for a while, not confined to this specific case. I would...
6
by: jslaybaugh | last post by:
I'm working on an ASP.NET 2.0 application and am having trouble with a very simple table layout. Using ASP.NET 2.0 it defaults to XHTML 1.0 Transitional and I am trying to comply. However, I...
4
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0'...
1
by: joshthomas99 | last post by:
Hello, Yes, I've spent hours reading through all the old postings and searched the net - but couldnt find a solution to the 100% height problem with nested divs. Basically I want the first...
1
by: mascouta | last post by:
I have a lot of problems with IE browser, one of them is described in this topic. in my website i have div Calculator with background image. it displayed perfectly with Firefox browser however in IE...
4
by: AAaron123 | last post by:
<body runat="server" id="MainBody"> <form id="form1" runat="server" style="background-color:green; width: 100%; height: 100%"> <br /> Table1" runat="server" Style="background-color:Yellow;...
2
by: ziycon | last post by:
I have the below code, when a user clicks on the <a href="#" onclick="showhide('languages'); return false;">Language(<div id="current_lang">en</div>)</a> it shows a DIV that is hidden and when...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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...

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.