<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <head> <link rel="stylesheet" href="style.css" type="text/css"/> </head> <body> <div class="strona"> <div id="srodek"> <input type="button" VALUE="tak" onClick="document.getElementById('ukryty').style.display='block';" > <div id="ukryty" style="display: none" > <form action="" method="post"> <fieldset> </fieldset> </form> </div> </div> <div id="stopka"> </div> </body> </html>
css:
body{ width: 700px; margin: 0 auto; } div#logo { background-color: #8b3a3a; height: 100px; } div#srodek{ background-color: #c1cdcd; height: 400px; } div#stopka{ background-color: #8b2500; height: 100px; } label { display: block; }
Otrzymalem taki efekt

po nacisnieciu przycisku tak wyskakuje ukryty div z formularzem

chcialbym zeby to wszystko wygladalo tak

oraz

2 problem
nie wiem jak ustalic wielkosc pola textarea w css. Kiedys uzywalem rows i cols ale teraz proboje opierac sie tylko na css ....