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

layered position:fixed elements broken in IE

I have a banner-and-sidebar menu that I want to remain always-accessible. So I've made them both position:fixed, and used z-index to ensure the layers work properly. Both the CSS and HTML validate, and the whole setup works exactly the way I want it to in firefox.

Link to site in question

However, in IE there are several problems; the major problem is that, instead of layering the two divs on top of each other, IE puts the later-created one *below* the first.

Minor niggles that I can live with if they're too bothersome to fix:
- IE totally ignores the position:fixed elements - they scroll right off the screen. (Example: Test page for scrolling )
- IE, for some reason, feels compelled to put about 7pixels of blank space between left, right and top edges of the browser, and my banner/sidebar. I think it looks ugly. (I don't *think* it's a padding issue, because there is no specified border or padding for those elements. I tried specifying 0px for border/padding with the sidebar image, with no effect.)

I'm fairly inexperienced with CSS / HTML: have I missed something really obvious, and/or is there some way I can fix this, please? Thanks (in advance) for your help.

Edit: sorry, to clarify - I'm viewing with IE6, (don't have IE7, because I don't have SP2, because I'm lazy and moving to Ubuntu soon.), and Firefox 2.0.0.9
Nov 17 '07 #1
3 2199
drhowarddrfine
7,435 Expert 4TB
- IE totally ignores the position:fixed elements
Position:fixed only works in modern browsers, not IE.
moving to Ubuntu soon.
There is little need for Windows anymore.

You are using the xml declaration on the first line. Although you are correct in doing so, only modern browsers interpret it correctly which, again, does not include Internet Explorer and it goes into 'quirks' mode. You can safely remove that first line.

One note, you are using the transitional doctype. New web pages have no need for this and you should switch to the strict doctype.

All versions of IE are going on 10 years behind other browsers in web standards support.
Nov 17 '07 #2
Thanks for the advice (have changed to Strict). Will make an alternate CSS for IE.

Thanks.
Nov 17 '07 #3
drhowarddrfine
7,435 Expert 4TB
Why make a seperate style sheet? Did you remove the xml declaration and see what happens then? The doctype won't fix anything. And there are hacks for IEs position problem (though they use javascript).
Nov 17 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Grayle | last post by:
I've heard that "position:fixed", which I use to scroll a navigation menu, does not work in IE. I have limited access to IE and would prefer to keep it that way. I am using <div class="nav">...
9
by: Paul Trautwein | last post by:
I'm trying to get an image to float in a window despite scrolling. I've gotten it to work on my Mac using IE 5.2, Netscape, and Safari, but it goes wonky when I test it on a PC. (testing with IE...
4
by: Peter Fjelsten | last post by:
Guys at comp.infosystems.www.authoring.stylesheets, I have designed a page in (x)HTML transitional that I am happy with in (close to) standard compliant browsers (i.e. Firebird/Opera), but IE...
5
by: Ted Mayett | last post by:
I've read a lot through the google archives, but I cannot seem to find an example... Has someone successfully made css code that allows for position: fixed to work in IE 6.0.2800? What is the...
7
by: Erik Sandblom | last post by:
Hello I'm trying to make some tooltips which are position:fixed. It works fine in Opera and Safari/Konqueror, but in Firefox and Camino (ie Mozilla), it takes a few seconds for each tooltip to...
11
by: Mathias Wrede | last post by:
Hi, is there anybody who can give me a hint?. I would like to create a fixed positioned navigation area. There are no probs with correct working browsers (FF, Opera, Konqueror etc.). The...
2
by: Eric Lindsay | last post by:
Googling suggests that IE7 may support position: fixed; I think this might be handy for some pages I want to do. Does anyone have any comments about whether fixed should be considered for use on...
5
by: pbd22 | last post by:
hi. i am messing around with CSS2.1 and position:fixed. I can't seem to get a "loading" span to move a little further left onto the page. It seems stuck on the upper right and kind of half way...
8
by: sheldonlg | last post by:
I have an app where position fixed works for FF and IE6 (with workaround). On IE7, the popup doesn't stay fixed in one place. The URL is http://www.sheldonlg.com/popup/popupLoc.html Click of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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,...
0
isladogs
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...

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.