indent & lt; textarea & gt; in webkit with Strict?

Asked byrosa hosniputeri

WebKit browsers (tested in Chrome and Safari) behave in an unintelligible way browsers, with an indent of 5 pixels under the texarea tag for the Strict doctype. With the Transitional doctype in all browsers there is no indent.

Can you please tell me how to correct this behavior?

padding.jpg
< br />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
form, textarea, div {
	padding:0;
	margin:0;
}
-->
</style>
</head>

<body>
<form action="" method="get">
	<div style="background:#F00">
		<textarea name="textarea" cols="40" rows="5"></textarea>
	</div>
</form>
</body>
</html>

Answers

grey
Try textarea {display: block;}
I'm not sure, but it helped when similar indentations appeared in IE for images
Replies:
Surprisingly, it worked. Thanks a lot! - mackenzie staub
rae ann
You can do this:
{vertical-align: top;}
Creating a folder (directory), password-protected using Java :: Where to find a side job with good Qt / C ++ knowledge? :: Two domains, one site? :: How to improve the display of fonts in evince? :: What type of process presentation do you find most convenient for project management?
Leave Repply forindent & lt; textarea & gt; in webkit with Strict?
Useful Links