Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Div zależy od diva w środku
konradinho
post 14.04.2010, 18:38:57
Post #1





Grupa: Zarejestrowani
Postów: 36
Pomógł: 0
Dołączył: 4.12.2009

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


Witam.

Na wstępie dodam, że przeglądałem wątki na ten temat ale, żadna metoda nie jest skuteczna. A mianowicie.

Mam diva lewego, prawego i środkowego. Wrzuciłem to do jednego diva któremu dałem overflow: hidden(tak wyczytałem). Chciałem aby zwiększanie się treści w divie o nazwie środek powodowało również zwiększanie się diva "all" (lewy,prawy,środek). Czy ktoś ma jakiś pomysł na rozwiązanie tego problemu?

Z góry dziękuję za propozycje.

CSS:

  1. #prawe {
  2.  
  3. position: absolute;
  4. margin-left:832px;
  5. width: 192px;
  6. min-height: 800px;
  7. height:auto;
  8. background-color:#EAEAEA;
  9.  
  10. }
  11. #lewe {
  12. width: 228px;
  13. min-height: 800px;
  14. height:auto;
  15. text-align:center;
  16. position: absolute;
  17. font-size: 12px;
  18. background-color:#EAEAEA;
  19.  
  20.  
  21. }
  22. #srodek {
  23. position: absolute;
  24. margin-left: 227px;
  25. width: 605px;
  26. min-height: 800px;
  27. height:auto;
  28. background-color:#EAEAEA;
  29. }


  1. <div align="center" id="all" style="min-height:810px; height:auto; overflow:hidden; display:block; width:1024px; background-color:#EAEAEA; margin-left: auto; margin-right: auto;">
  2.  
  3. <div id="srodek">
  4. TREŚĆ
  5. </div>
  6. <div id="lewe"><br /><?php
  7. include('login.php');
  8. include('include/lewe.php');
  9. ?>
  10. </div>
  11. <div id="prawe"><br /><?php include('include/prawe.php');
  12. ?></div>
  13. </div>
Go to the top of the page
+Quote Post
pedro84
post 14.04.2010, 19:04:34
Post #2





Grupa: Nieautoryzowani
Postów: 2 249
Pomógł: 305
Dołączył: 2.10.2006

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


Kod
overflow:auto;


--------------------
Google knows the answer...
Go to the top of the page
+Quote Post
krzysztof_kf
post 14.04.2010, 19:07:41
Post #3





Grupa: Zarejestrowani
Postów: 1 135
Pomógł: 158
Dołączył: 19.03.2009
Skąd: Toruń

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


Ale bajzer

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Strict//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. <head>
  6. </head>
  7. <body>
  8. <style>
  9.  
  10. #header {
  11. width:1024px;
  12. margin: 0 auto;
  13. background-color:#EAEAEA;
  14. }
  15.  
  16.  
  17. #content {
  18. width:1024px;
  19. overflow: hidden;
  20. margin: 0 auto;
  21. background-color:#EAEAEA;
  22. }
  23.  
  24. #lewa {
  25. width: 228px;
  26. float: left;
  27.  
  28. }
  29. #srodek {
  30. width: 528px;
  31. float: left;
  32.  
  33.  
  34. }
  35. #prawa {
  36. width: 205px;
  37. float: left;
  38. }
  39. </style>
  40.  
  41. <div id="header">
  42. TREŚĆ
  43. </div>
  44. <div id="content">
  45. <div id="lewa"><?php
  46. include('login.php');
  47. include('include/lewe.php');
  48. ?>
  49. </div>
  50. <div id="srodek">
  51. ble ble
  52. </div>
  53. <div id="prawa"><?php include('include/prawe.php');
  54. ?></div>
  55. </div>
  56. </body>
  57. </html>
Go to the top of the page
+Quote Post
konradinho
post 14.04.2010, 20:09:29
Post #4





Grupa: Zarejestrowani
Postów: 36
Pomógł: 0
Dołączył: 4.12.2009

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


@krzysztof_kf

Podziękował winksmiley.jpg
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 01:54