Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z wypozycjonowanie formularza oraz ustaleniem wielkosci textarea
Dandelion
post
Post #1





Grupa: Zarejestrowani
Postów: 169
Pomógł: 0
Dołączył: 27.01.2006

Ostrzeżenie: (0%)
-----


Pisze sobie szkielet strony

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Tytuł strony</title>
  7. <link rel="stylesheet" href="style.css" type="text/css"/>
  8. </head>
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. <div class="strona">
  16.  
  17. <div id="logo">1</div>
  18.  
  19. <div id="srodek">
  20.  
  21. <input type="button" VALUE="tak" onClick="document.getElementById('ukryty').style.display='block';" >
  22.  
  23. <div id="ukryty" style="display: none" >
  24. <form action="" method="post">
  25. <label>Tytul <input type="text" name="tytul"/></label>
  26. <label>Tresc<input type="textarea" name="tresc"/></label>
  27. <label>Autor<input type="text" name="autor"/></label>
  28. <label>Wyslij<input type="submit" value="wyslij"/></label>
  29. </form>
  30. </div>
  31.  
  32. </div>
  33.  
  34. <div id="stopka">
  35.  
  36. </div>
  37.  
  38.  
  39.  
  40. </body>
  41. </html>


css:

  1. body{
  2. width: 700px;      
  3. margin: 0 auto;
  4. }
  5.  
  6. div#logo {
  7. background-color: #8b3a3a;
  8. height: 100px;
  9. }
  10.  
  11. div#srodek{
  12. background-color: #c1cdcd;      
  13. height: 400px;
  14. }
  15.  
  16. div#stopka{
  17. background-color: #8b2500;      
  18. height: 100px;
  19. }
  20.  
  21. label {
  22. display: block;
  23.  
  24. }


Otrzymalem taki efekt

(IMG:http://img396.imageshack.us/img396/4184/zle2ak0.th.jpg)

po nacisnieciu przycisku tak wyskakuje ukryty div z formularzem

(IMG:http://img396.imageshack.us/img396/3784/zle3xy5.th.jpg)

chcialbym zeby to wszystko wygladalo tak

(IMG:http://img393.imageshack.us/img393/9686/dobrze1nz0.th.jpg)

oraz

(IMG:http://img396.imageshack.us/img396/6991/dobrze2yl9.th.jpg)

2 problem

nie wiem jak ustalic wielkosc pola textarea w css. Kiedys uzywalem rows i cols ale teraz proboje opierac sie tylko na css ....
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
babejsza
post
Post #2





Grupa: Zarejestrowani
Postów: 407
Pomógł: 1
Dołączył: 4.03.2003
Skąd: warszawa

Ostrzeżenie: (0%)
-----


pole textarea musi zawierać znaczniki rows i cols. Mogą być puste, ale muszą się pojawić.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 21:09