Click to See Complete Forum and Search --> : Fixed positioning and IE7


LizzyB
01-24-2007, 09:13 AM
Hi,

Im trying to use postion:fixed and its working ok in Firefox but completely being ignored in IE7. Is this a known problem?
Im guessing my codes right as its working in FF.

Liz

drhowarddrfine
01-24-2007, 09:23 AM
Position:fixed was fixed in IE7 but you need a proper doctype for it to work there.

LizzyB
01-24-2007, 09:29 AM
Hi,

I use this one - its dreamweavers default;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

should it be something else?
Thanks
Liz

Centauri
01-24-2007, 08:56 PM
Whilst that doctype will keep IE out of quirks mode, a html 4.01 strict would be more appropriate. In Dreamweaver, under Edit menu > Preferences > New Document, you can select default document type - pick HTML 4.01 Strict option here.

Cheers
Graeme

PS: haven't tried fixed position in IE7 yet