B
bernhard schelling
hi,
by migrating an existing site to xhtml i encountered a strange behaviour in
Firefox & Opera:
If I change the doctype to xhtml the top-margin on the form element seems
to go up -
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<style>
#search{
margin-top:95px
}
</style>
</head>
<body>
<div style="height:100px;border:1px red solid"><input type="text"
id="search"/></div>
</body>
</html>
any hints?
thanks in advance
bernhard
by migrating an existing site to xhtml i encountered a strange behaviour in
Firefox & Opera:
If I change the doctype to xhtml the top-margin on the form element seems
to go up -
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<style>
#search{
margin-top:95px
}
</style>
</head>
<body>
<div style="height:100px;border:1px red solid"><input type="text"
id="search"/></div>
</body>
</html>
any hints?
thanks in advance
bernhard