Das funktioniert auf jeden Fall nicht:
- Code: Alles auswählen
<textarea style="height:30%;"></textarea>
Auch nicht wenn die übergeordneten Elemente (html, body, form) eine Höhe von 100% haben.
Danke fürs lesen, und noch mehr Danke für Antworten.
<textarea style="height:30%;"></textarea><textarea cols="0" style="height: 30%; width: 30%;"></textarea>html, body {height: 100%; width: 100%;}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unbenanntes Dokument</title>
<style>
html, body, form{
height:100%;
}
</style>
</head>
<body>
<form>
<textarea rows="1" cols="1" style="height:30%;width:100%"></textarea>
</form>
</body>
</html><textarea rows="1" cols="1" style="height:30%;width:100%; position: absolute;"></textarea>
Moderatoren: Laus, Moderatoren
Zurück zu: CSS für Anfänger
Mitglieder in diesem Forum: Exabot [Bot], Google [Bot] und 5 Gäste