Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [CSS][PHP][HTML] Dlaczego te 2 divy nie są koło siebie?
Forum PHP.pl > Forum > Przedszkole
unster
Witam, mam kolejny problem z ułożeniem divów sad.gif

efekt:


Kod:
  1. <?php get_header(); ?>
  2.  
  3. <div id="page_sin">
  4.  
  5. <div id="contentleft_sin">
  6. <div id="content_sin">
  7. tytul
  8.  
  9. <div class="entry">
  10. <?php the_content(); ?>
  11. </div>
  12.  
  13. </div>
  14. <?php comments_template(); ?>
  15.  
  16. <?php endwhile; endif; ?>
  17.  
  18. <div class="navigation">blebleble</div>
  19.  
  20. <div style="clear:both;"></div>
  21. </div>
  22. </div>
  23. <?php include (TEMPLATEPATH . "/sidebar_sin.php"); ?>
  24. </div>
  25. </div>


oraz kod sidebar_sin [to ten bloczek co jest na dole właśnie]:
  1. <div id="contentright_sin" style="display:inline;">
  2.  
  3. <h3>xxxx</h3>
  4. <p style="text-align:left;">
  5. <img src="xxxx"/>
  6. blebleble
  7. </p>
  8.  
  9. <div id="sidebar_sin">
  10. <ul>
  11. <?php if ( !function_exists('dynamic_sidebar')
  12. || !dynamic_sidebar(2) ) : ?>
  13. <?php endif; ?>
  14. </ul>
  15. </div>
  16. </div>


jeżeli natomiast chodzi o klasy css:
  1. #contentright_sin {
  2. font-family:tahoma,geneva,verdana,sans-serif;
  3. font-size: 8pt;
  4. width: 250px;
  5. float:right;
  6. padding: 15px 0 15px 15px;
  7. margin: 0 0 15px;
  8. }
  9.  
  10. #sidebar_sin {
  11. width: 250px;
  12. font-size: 8pt;
  13. float: right;
  14. margin: 0;
  15. padding: 0;
  16. }
  17.  
  18. #contentleft_sin {
  19. width: 910px;
  20. float:left;
  21. padding: 0;
  22. margin: 0;
  23. }
  24.  
  25. #content_sin {
  26. width: 629px;
  27. float: left;
  28. margin: 0 1px 0 0;
  29. padding: 0;
  30. }
  31. #page_sin {
  32. display: inline;
  33. clear: both;
  34. margin: 0 auto;
  35. padding: 0;
  36. }


Jak widać gdzieniegdzie przewija się clear both, display inline. Nic nie pomaga. Próbowałem też umieszczać include tego pliku php w różnych miejsach - również nic z tego sad.gif
Pomocy!
seth-kk
brakuje overflow: hidden dla kontenera
unster
mógłbyś może mi dokładniej napisać proszę, gdzie mam dodać ten fragment stylu?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.