Solved

HTML/CSS IE using position:fixed

Posted on 2013-05-29
2
176 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to learn promise API 2 51
Access Control Entries lost in Windows folders 3 53
Control Number of Log Files -Perl 7 71
change the windows script file to BAT 10 40
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
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…

813 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

15 Experts available now in Live!

Get 1:1 Help Now