473,480 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IE position:fixed; hack doesn't like 4.01 strict DOCTYPE?

Trying to get this hack to run in IE6. But it seems that it works for
me only if there is no doctype. Is this the case?

If not, then can someone tell me, please, how I've screwed up the
styling?

Page with proper doctype:

http://www.pwilson.net/cleanweb/fixe...fixpos-ie.html

Page with no doctype:
http://www.pwilson.net/cleanweb/fixe...o-doctype.html

Thanks!

-- Pete

Jul 26 '05 #1
4 2112
Fig
On Tue, 26 Jul 2005 20:55:49 +0100, <pe**@pwilson.net> wrote:
Trying to get this hack to run in IE6. But it seems that it works for
me only if there is no doctype. Is this the case?

If not, then can someone tell me, please, how I've screwed up the
styling?

Page with proper doctype:

http://www.pwilson.net/cleanweb/fixe...fixpos-ie.html

Page with no doctype:

http://www.pwilson.net/cleanweb/fixe...o-doctype.html


You need to validate your HTML. You have closed <html> and <body> twice.

--
Fig
Jul 26 '05 #2
You are so right! Thanks. Now how did I mess up the styling in this
first page, the page with proper doctype:

http://www.pwilson.net/cleanweb/fixe...fixpos-ie.html

And how come the hack works on this page with no doctype, which of
course will never validate:
http://www.pwilson.net/cleanweb/fixe...o-doctype.html

Jul 27 '05 #3
You are so right! Thanks. Now how did I mess up the styling in this
first page, the page with proper doctype:

http://www.pwilson.net/cleanweb/fixe...fixpos-ie.html

And how come the hack works on this page with no doctype, which of
course will never validate:
http://www.pwilson.net/cleanweb/fixe...o-doctype.html

Jul 27 '05 #4
pe**@pwilson.net wrote:
You are so right! Thanks. Now how did I mess up the styling in this
first page, the page with proper doctype:

http://www.pwilson.net/cleanweb/fixe...fixpos-ie.html

And how come the hack works on this page with no doctype, which of
course will never validate:
http://www.pwilson.net/cleanweb/fixe...o-doctype.html

<br/> should be <br /> in a html document if not <br> [<br /> is more up
to date aka xhtml]
Jul 27 '05 #5

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

Similar topics

5
4022
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
17695
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
5863
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
3431
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...
2
2384
by: Eric Lindsay | last post by:
I have been trying to do a CSS liquid layout imitating a frame, using position: fixed for header, footer, and side navigation, and a fixed background image. Page is valid HTML 4.01 Strict, and is...
11
10362
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
9747
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
3260
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
2453
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...
1
1336
by: sheldonlg | last post by:
I found out that the IE7 problem has nothing to do with the conditional code. If I remove that conditional code, IE7 still has the block moving. See: http://www.sheldonlg.com/popup/popupLoc1.html...
0
7046
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
6908
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
7048
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
7088
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...
1
6741
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...
1
4783
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...
0
4485
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.