Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][PHP]Overflow za każdym razem
demoniczny
post
Post #1





Grupa: Zarejestrowani
Postów: 38
Pomógł: 0
Dołączył: 18.07.2011

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


Witam!
Mam problem z overflowem cały czas tekst wychodzi poza diva nie wiem co zrobić aby linie się łamały tak jak powinny.
Próbowałem już wszystkiego:

Dołączam kod:
  1. #page {
  2. margin: 0;
  3. position: relative;
  4. overflow: hidden;
  5. padding: 20px 20px 0 20px;
  6. background: #FFF;
  7. position: relative;
  8. box-shadow: inset 0px 0px 3px 0px #ffffff, inset 0px 0px 250px 0px #d8d8d8, 0px 10px 20px 0px #D6CCBA;
  9. text-shadow: 1px 1px 0px #ffffff;
  10. border-bottom-left-radius: 6px;
  11. border-bottom-right-radius: 6px;
  12. }
  13.  
  14. #boxes {
  15. overflow: hidden;
  16. position: relative;
  17. }
  18. .box {
  19. float: left;
  20. width: 200px;
  21. overflow: hidden;
  22. margin-left: 15px;
  23. position: relative;
  24. margin-bottom: 10px;
  25. text-align: left;
  26. word-wrap: break-word;
  27. }
  28. .box1{
  29. float: left;
  30. width: 400px;
  31. height: 400px;
  32. overflow: hidden;
  33. margin-left: 20px;
  34. position: relative;
  35. margin-bottom: 10px;
  36. text-align: left;
  37. }
  38. .box2{
  39. float: left;
  40. width: 500px;
  41. min-height: 400px;
  42. margin-left: 20px;
  43. margin-bottom: 10px;
  44. text-align: left;
  45. font-size: 13px;
  46. line-height: 1.8em;
  47. position: relative;
  48. }


  1. <div id="boxes">
  2. <div class="box2" style="width: 600px;">
  3. <center><h3 style="color: green; font-size: 20px;"><?php echo $contents['title']; ?></h3></center>
  4. <?php echo stripslashes($contents['content']); ?>
  5. </div>
  6. <?php include './modules/comments.php'; ?>
  7. </div>
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 Aktualny czas: 20.08.2025 - 21:03