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?

< br />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
form, textarea, div {

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


Try textarea {display: block;}
I'm not sure, but it helped when similar indentations appeared in IE for images
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