Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS]problem z divem
sazian
post
Post #1





Grupa: Zarejestrowani
Postów: 1 045
Pomógł: 141
Dołączył: 19.09.2006
Skąd: B-tów

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


witam,
mam taki kod
  1. <div style="margin:0 auto;width: 800px;border:1px solid green;">
  2. <div style="width:180px;float:left;border:1px solid red;">
  3. <br><br><br><br><br><br>
  4. </div>
  5. <div style="width:593px;float:left;border:1px solid blue;">
  6. <br><br><br><br><br>
  7. </div>
  8. </div>

a oto efekt działania skryptu
(IMG:http://img227.imageshack.us/img227/3803/69840843qv6.th.png)

dlaczego ten pierwszy div(ten "zielony") nie "obejmuje" tych 2 pozostałych divów (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
chodzi mi o to że jego wysokość jest mniejsza niż wysokość diwów które są w nim

Ten post edytował sazian 29.07.2008, 18:17:57
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
luniak
post
Post #2





Grupa: Zarejestrowani
Postów: 171
Pomógł: 36
Dołączył: 12.01.2008
Skąd: Puszcza Mariańska

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


  1. <div style="margin:0 auto; width: 800px; border: 1px solid green; overflow: auto;">
  2. <BR><br><br>
  3. <div style="width: 180px; float: left; border: 1px solid red;">
  4. <br><br><br><br><br><br>
  5. </div>
  6. <div style="width: 593px; float: left; border: 1px solid blue;">
  7. <br><br><br><br><br>
  8. </div>
  9. </div>


Mam nadzieję ze pomogłem

Ten post edytował luniak 29.07.2008, 18:48:59
Go to the top of the page
+Quote Post
Tomplus
post
Post #3





Grupa: Zarejestrowani
Postów: 1 879
Pomógł: 230
Dołączył: 20.03.2005
Skąd: Będzin

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


Myśle że to będzie lepsze.

  1. <div style="margin:0 auto; width: 800px; border: 1px solid green;">
  2. <br/><br/><br/>
  3. <div style="width: 180px; float: left; border: 1px solid red;">
  4. <br/><br/><br/><br/><br/><br/>
  5. </div>
  6. <div style="width: 593px; float: left; border: 1px solid blue;">
  7. <br/><br/><br/><br/><br/>
  8. </div>
  9. <div style="clear:both;"></div>
  10. </div>
Go to the top of the page
+Quote Post
sazian
post
Post #4





Grupa: Zarejestrowani
Postów: 1 045
Pomógł: 141
Dołączył: 19.09.2006
Skąd: B-tów

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


oba rozwiązania działają (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
dzięki (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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: 22.08.2025 - 13:15