Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]float a brak height div rodzica ...
Agape
post
Post #1





Grupa: Zarejestrowani
Postów: 384
Pomógł: 13
Dołączył: 16.06.2006

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


Z tymi floatami nie moge dojść do porozumienia ...
  1. <div class="pod_menu">
  2. <div class="transparent">
  3. <div class="transparent-text">
  4. a<br><br><br><br><br><br><br>
  5. </div>
  6. <div class="transparent-text">
  7. a
  8. </div>
  9. </div>
  10. </div>


  1. .pod-menu{
  2. width: 385px;
  3. margin-top: -30px;
  4. padding-top: 9px;
  5. position: fixed;
  6. background: url('images/arrow.png') no-repeat;
  7. }
  8.  
  9. .transparent{
  10. background-color: #2e2521;
  11. -moz-opacity:0.80;
  12. -khtml-opacity: 0.80;
  13. filter:alpha(opacity=80);
  14. opacity: 0.80;
  15. }
  16.  
  17. .transparent-text{
  18. background-color: #2e2521;
  19. float: left;
  20. width: 192px;
  21. }


i pole transparent które ma tło nie ma wysokości. Jak wezme tlo dla transparent-text sa za to rozne wysokosci. Float to powoduje.
Tu jest screen:
(IMG:http://my.jetscreenshot.com/demo/20100606-kv7f-7kb.jpg)

Oczywiście potrzebuje, żeby pole .transparent było "jednej wysokości", ale nie moge dojść z tymi float ...
Gdy dam clear: both do .transparent, nic to nie daje ...
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: 23.12.2025 - 00:05