DOCTYPE for html Layers
i have my doctype set as:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
but this is not rendering z-indexed layers at all.
i tried <!doctype html>
and it still does not work.
so my question is in order for stacked layers to work which doctype should i declare?
thank you for your help.
EDIT: i think stack layering is not a part of HTML any more, from w开发者_运维知识库eb searchs i gather. how do i go about placing an image on top of another image then? thanks!
EDIT: it is dependant on which version of doctype being used. the layering works in compability mode but not in normal mode.
What the hell are you talking about there.
For z-index
to work, element must be positioned either as absolute
or relative
. And it has nothing to do with doctypes.
精彩评论