Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [css] wysokosc div'a
kufalo
post
Post #1





Grupa: Zarejestrowani
Postów: 251
Pomógł: 2
Dołączył: 24.08.2005

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


  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. </head>
  5. <body>
  6. <div style="width:200px;border:1px solid red">
  7. <div style="min-height:200px">
  8. <div style="margin:10px">text</div>
  9. </div>
  10. </div>
  11. </body>
  12. </html>


Mam dziwny problem z wysokoscia bialego pola wewnatrz czerwonej ramki.
Wydaje mi sie, ze powinien miec 200px, ale na roznych przegladarkach ma 210 lub 220.
Winowacja jest wewnetrzny margin, ale nie bardzo rozumiem dlaczego daje on taki dziwny skutek...?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
piotrooo89
post
Post #2


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




daj tak i po sprawie:

  1. <div style="width: 200px; border: 1px solid red;">
  2. <div style="min-height: 200px; background-color: blue; overflow: hidden;">
  3. <div style="margin: 10px; background-color: yellow;">text</div>
  4. </div>
  5. </div>


bierze się to z tak zwanego biegu dokumentu (flow) nie umiem tego wyjaśnić na Kusry Browsehappy::FLOW masz wyjaśnione.
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: 10.10.2025 - 04:07