Solved

HTML/CSS IE using position:fixed

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

762 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