473,397 Members | 2,099 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,397 software developers and data experts.

Disappearing layers

Hi,

I cannot find an explanation for the problem I have encountered. As far
as I can tell, Internet Explorer does not display a layer with absolute
positioning which is followed by a floating layer. It just disappears,
and reappears when I remove the float.

Have a look at http://users.skynet.be/fa800152

You'll see that the navigation displays fine in Firefox on the top of
the screen, but it's not visible at all in Internet Explorer.

Any explanation for this problem? As I try to understand the bug to be
able to find a solution.

Regards,

Gerry.

Apr 17 '06 #1
7 3789
In article <11**********************@e56g2000cwe.googlegroups .com>,
Gerry Vandermaesen <ge****************@gmail.com> wrote:
Have a look at http://users.skynet.be/fa800152

You'll see that the navigation displays fine in Firefox on the top of
the screen, but it's not visible at all in Internet Explorer.


It works fine for me in IE.
-A
Apr 18 '06 #2
Gerry Vandermaesen wrote:

I cannot find an explanation for the problem I have encountered. As far
as I can tell, Internet Explorer does not display a layer with absolute
positioning which is followed by a floating layer. It just disappears,
and reappears when I remove the float.

I do not have an explanation beyond that IE does positioning poorly. In
your case it positions the navigation <ul> in East Jesus somewhere.
Remove all the position:absolute rules. There is no need for it in your
layout. Floating and padding is sufficient.
A simple rule I have found that works is to never use more than one
position:absolute on a page, else IE behaves badly in some annoying way.
Also it is difficult to get the layout to adapt smoothly to viewport and
font size changes.

Tip: Use colored borders and backgrounds to see what a browser is doing.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Apr 18 '06 #3
axlq wrote:
It works fine for me in IE.
-A
That's strange, which version of IE are you using then? Doesn't show up
in IE 6 on two different machines.

Jim Moe wrote: I do not have an explanation beyond that IE does positioning poorly. In
your case it positions the navigation <ul> in East Jesus somewhere.
Remove all the position:absolute rules. There is no need for it in your
layout. Floating and padding is sufficient.
A simple rule I have found that works is to never use more than one
position:absolute on a page, else IE behaves badly in some annoying way.
Also it is difficult to get the layout to adapt smoothly to viewport and
font size changes.


Thanks Jim. I have already tried removing the UL inside #navigation,
and putting some plain text inside the DIV, but even then it completely
disappears, which is strange cause afterall I'm just positioning it on
the top left corner. Raising the z-index was no help either, the layer
has vanished.

When I remove the float on the two layers that follow (a left column
#content and a right one #sidebar), the #navigation reappears. This is
the strangest CSS bug I have encountered in IE to date.

Apr 18 '06 #4
I set up a very simple page, which shows the exact same problem:

http://users.skynet.be/fa800152/test.htm
Gerry Vandermaesen wrote:
Hi,

I cannot find an explanation for the problem I have encountered. As far
as I can tell, Internet Explorer does not display a layer with absolute
positioning which is followed by a floating layer. It just disappears,
and reappears when I remove the float.

Have a look at http://users.skynet.be/fa800152

You'll see that the navigation displays fine in Firefox on the top of
the screen, but it's not visible at all in Internet Explorer.

Any explanation for this problem? As I try to understand the bug to be
able to find a solution.

Regards,

Gerry.


Apr 18 '06 #5
Gerry Vandermaesen wrote:
I do not have an explanation beyond that IE does positioning poorly. In
your case it positions the navigation <ul> in East Jesus somewhere.
Remove all the position:absolute rules. There is no need for it in your
layout. Floating and padding is sufficient.


Thanks Jim. I have already tried removing the UL inside #navigation,
and putting some plain text inside the DIV, but even then it completely
disappears, which is strange cause afterall I'm just positioning it on
the top left corner. Raising the z-index was no help either, the layer
has vanished.

Well, I meant do not use position:absolute at all.
This site has a variety of info about IE problems:
- <http://positioniseverything.net/>
- <http://positioniseverything.net/articles.html>

Also see <http://css.maxdesign.com.au/>.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Apr 18 '06 #6
Jim Moe wrote:
Tip: Use colored borders and backgrounds to see what a browser is doing.


The OP also might find the Internet Explorer Developer Toolbar of use,
although it's not a patch on Chris Pederick's Web Developer extension
for Firefox:
http://channel9.msdn.com/wiki/defaul...orerDevToolbar
--
AGw.

Apr 19 '06 #7
Gerry Vandermaesen wrote:

Internet Explorer does not display a layer with absolute
positioning which is followed by a floating layer. It just disappears,
and reappears when I remove the float.

http://users.skynet.be/fa800152


I'm not convinced the float is really the source of your trouble. It may
be just coincidence. IE has many problems with floats and positioning in
general, but I can't tell which one(s) you've triggered.

One thing that sticks out is setting an absolute width on the body. This
is just asking for trouble, and not just from IE. I doubt you need
exactly 710px width for the body element, but if you insist on a fixed
width design, put everything in another container and set the width on
it, instead. Much less trouble all around. But a better solution is:
<URL:http://www.allmyfaqs.net/faq.pl?AnySizeDesign>

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Apr 19 '06 #8

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

Similar topics

9
by: Larry Woods | last post by:
I have a site that works fine for days, then suddenly, I start getting ASP 0115 errors with an indication that session variables IN SEPARATE SESSIONS have disappeared! First, for background...
1
by: Lizzy | last post by:
I have an internet application which has a progress bar show whenever the customer is requesting data from the server. This progress bar is coded to work in both Netscape 4.75 and above and IE 5.0...
6
by: David List | last post by:
I'm having a problem using different properties of the document object in the example javascripts in my textbook with browsers that identify themselves as using the Mozilla engine. One example of...
4
by: ashkaan57 | last post by:
Hi, I am using the following code to show/hide part of an html page. It works in Netscape and Firefox but dies in IE: "Error: document.layers is null or not an object" <style> ..noshow {...
2
by: Rachel Suddeth | last post by:
Here is my scenario: I have a few custom controls that I set up on a form and tested setting properties and appearances. Then I added a couple references to the project which add classes I need to...
5
by: Burt | last post by:
There's an architect at my 200 person company that advocates having many layers in all my C# apps. He wants web services, use case handlers, facade layers, data gateways, etc. When I ask why all...
1
by: Grimm | last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web...
2
by: insanity | last post by:
Can anyone help me with a problem that I have with apparently unrelated text disappearing in IE7 when I set a className. This does not happen in Firefox. I am trying to create an Ajax driven...
0
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails...
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?
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
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.