Einzelnen Beitrag anzeigen
  #4 (permalink)  
Alt 26.07.2004, 12:52
ulle ulle ist offline
Erfahrener Benutzer
XHTMLforum-Kenner
 
Registriert seit: 02.06.2003
Beiträge: 2.441
ulle befindet sich auf einem aufstrebenden Ast
Standard

textarea - relative Breite

Code:
<!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" xml:lang="de" lang="de">
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>xxxx</title>

<style type="text/css">	<!--
	html,body	{
		padding: 0;
		margin: 0;
		background-color: #FEFEFE;
		color: #000000;
		font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
		font-size: 100%;
	}

	#box{
		width: 80%;
		margin: 5px auto;
		border: 1px solid #7D7D7D;
		padding: 3px;
		background-color: #E9E9E9;
	}

	fieldset, form {
		margin: 0;
		padding: 0;
		border:	none;
	}
	#textfield{
		width: 100%;	/* wichtig */
		background-color: #ff9933;
		text-align: center;
	}

	#textfield textarea {
		width: 98%; /* keine 100% wegen border [box-model] */
		height: 120px;
		margin: 0;
		border: 1px solid #7D7D7D;
		padding: 3px;
		color: #000000;
		background-color: #FFFBF0;
		font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; /* wichtig weil textarea nicht Erbt*/
		font-size: 0.8em;
		overflow: auto;
	}
	
	-->
</style>



</head>
<body>

<div id="box">

<form action="xxx.php" method="post">
<div id="textfield"><textarea cols="50" rows="20" name="text">xxxx</textarea></div>
<fieldset><input type="submit" name="submit_name" /></fieldset>
</form>

</div>

</body></html>
Ich hatte so noch keine Probleme.......
__________________
</ulle>
Mit Zitat antworten