471,603 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,603 software developers and data experts.

position absolute not working with XHTML

I was wondering if this is a known bug?

Whenever I use the

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

instead of the

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

any inline styles using the position absolute style won't work.

for example, if I want to float a drop down menu over an image, the drop down menu will not apply the position i set up when using the xhtml doc type header.

is this a known bug? are there any fixes for it?
Sep 13 '07 #1
1 1953
1,351 Expert 1GB
inline styles don't work with strict doctype...thats why its strict (only external css files are to be used).

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

and you'll be fine,
good luck
Sep 13 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Analysis&Solutions | last post: by
5 posts views Thread by Duane Lambe | last post: by
3 posts views Thread by Alexander Fischer | last post: by
1 post views Thread by =?ISO-8859-1?B?QW5kcukgSORuc2Vs?= | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

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.