Solved

HTML/CSS IE using position:fixed

Posted on 2013-05-29
2
175 Views
Last Modified: 2013-06-04
I am trying to use position:fixed in IE9 it does not work, it works under chrome,
I need a way around it.


Thanks
0
Comment
Question by:amiDgreat
2 Comments
 
LVL 8

Expert Comment

by:ShannonEE
ID: 39206877
For IE, you need to specify !DOCTYPE for position:fixed to work properly.
Hi there  amiDgreat ,
try

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">

as the first 4 lines (the doctype prevents it going into quirks mode).

Ian
0
 
LVL 4

Accepted Solution

by:
Ahmed Hussein earned 500 total points
ID: 39206977
If you use XHTML instead of HTML then position:fixed is definitely work. On starting of your HTML page you have to add

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

OR <!doctype html> in first line on page
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now