Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [css] nie mogę zmniejszyć diva
Arek00
post 1.06.2006, 16:16:04
Post #1





Grupa: Zarejestrowani
Postów: 177
Pomógł: 0
Dołączył: 8.11.2005

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


fragment stylu:
  1. .poll .bar {
  2. height: 1em;
  3. margin: 1px 0;
  4. background-color: #ddd;
  5. }
  6. .poll .bar .foreground {
  7. background-color: #aaa;
  8. height: 1em;
  9. clear: left;
  10. float: left;
  11. }

na stronie jest to używane tak:
  1. <div class="bar"><div style="width: 16%;" class="foreground"></div></div>

problem polega na tym że gdy zmieniam parametr height na większy np. 1.5 lub 2 to element na stronie się powiększa natomiast gdy chciałbym pomniejszyć ten element wstawiając w height np. 0.5 to cały czas mam rozmiar taki jak przy 1em. jak zmniejszyć te divy?
Go to the top of the page
+Quote Post

Posty w temacie


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: 13.08.2025 - 22:42