Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS] Dziwny problem z FLOAT
emajl22
post
Post #1





Grupa: Zarejestrowani
Postów: 273
Pomógł: 21
Dołączył: 28.11.2010

Ostrzeżenie: (10%)
X----


mam coś takiego:

  1. <div class="page">
  2. <div class="content">
  3. <div class="post">
  4. <div class="title"><a href="#">Witamy na stronie</a></div>
  5. <div class="entry">
  6. Witamy na stronie.<br /><br />
  7. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has <strong>been the industry's</strong> standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived <strong>not only five</strong> centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  8. </div>
  9. </div>
  10. </div>
  11.  
  12. <div class="sidebar">
  13. <div class="title"><a name="">xxx</a></div>
  14. <div class="body">
  15. <p>tekst</p>
  16. </div><br />
  17.  
  18. <div class="title"><a name="">Wybierz kategorie</a></div>
  19. <div class="body">
  20. <ul>
  21. <li><a href="#">Kategoria 1</a></li>
  22. <li><a href="#">Kategoria 2</a></li>
  23. <li><a href="#">Kategoria 3</a></li>
  24. <li><a href="#">Kategoria 4</a></li>
  25. <li><a href="#">Kategoria 5</a></li>
  26. </ul>
  27. </div>
  28. </div>
  29. </div>


jak widać próbuję zrobić układ:

lewa | prawa

css:

  1. .wrapper {
  2. width: 985px;
  3. margin: 0 auto;
  4. background: #000;
  5. }
  6. .content {
  7. float: left;
  8. width: 710px;
  9. padding: 23px 20px 0 0;
  10. font-size: 15px;
  11.  
  12. .sidebar {
  13. float: left;
  14. width: 255px;
  15. padding: 23px 0 0 0px;
  16. color: #787878;
  17. }
  18. }


problem w tym, że jak dam background: #000; dla klasy .wrapper to nic się nie pokazuje... a jak usunę floaty to jest... .wrapper jest ustawiony zaraz po <body> i zamykany zaraz przed </body>

Ten post edytował emajl22 17.02.2011, 16:49:44
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: 23.08.2025 - 06:37