Witam,osobiście nigdy wczesniej nie spotkałem się z tym problemem gdyż nie potrzebowałem tej funkcji,ale mam problem. Chce zrobić taki prosty system newsowy. Jednak jeśli news jest zbyt długi to wychodzi poza przeznaczone mu miejsce. Całośc wygląda tak,że jest tło stronyjakiś obrazeczek),a pod spodem są 3 DIV'y menu,news,logowanie i te divy jako tło mają mieć białą przestrzeń.

Plik CSS wygląda tak:

  1. BODY { font-family: verdana;
  2. font-size: 10px;
  3. background:#000000 url('gfx/klatka2.jpg'); 
  4. margin:0;
  5. padding:0;
  6. color: #000000}
  7.  
  8. #up {position:relative; margin:0; margin-left: 150px; margin-right:150px; color:white; text-align:center; font-size:28px; 
  9.  
  10.  
  11.  
  12. }
  13. #reklama {margin:0; margin-left:150px; margin-right: 150px; color:white; font-size: 22px; text-align:center; margin-top:0px; position:relative;
  14.  
  15.  
  16.  }
  17. #menu_lewe{margin:0;  
  18. font-size:18px; position:absolute; margin-left:147px; margin-right: 900px; margin-bottom: 10px;
  19.  
  20. color:black; background:white;
  21.  
  22. border-left-style: solid; border-right-style: solid;
  23.  border-bottom-style: solid; min-height:1000px; width:200px;
  24.  
  25.  }
  26. #menu_prawe{margin:0;  
  27. font-family:test;
  28. font-size:12px;
  29.  position:absolute; margin-left:900px; margin-right: 149px; 
  30. margin-bottom: 10px;
  31.  
  32. border-left-style: solid; border-right-style: solid;
  33.  border-bottom-style: solid; min-height:1000px; width:200px;
  34.  color:black; background:white;
  35.  }
  36.  
  37.  
  38.  
  39. #news {
  40. margin:0;  
  41. font-size:18px;
  42. color:green; background-color:yellow;
  43.  position:absolute; margin-left:345px; margin-right: 355px;
  44. margin-bottom: 10px;
  45. border-left-style: solid; border-right-style: solid;
  46.  border-bottom-style: solid;
  47. min-height:1000px; width:552px;
  48. text-align:center; color:black; background:white;
  49.  }
  50.  
  51. #podpis {margin:0; background-image: url(gfx/dol.jpg); background-position: center;
  52.  margin-bottom: 10px; position: absolute; background-repeat:no-repeat; margin-left: 142px; 
  53.  margin-top:827px;
  54. width:971px;
  55. }
  56.  
  57.  .stopka {margin:0; color:white; size:11px; position:relative; margin-left: 50px; 
  58.  margin-top:1000px; }
  59.  
  60.  .alert {margin:0; color:red; font-size:20px; text-align:center;}
  61.  
  62.  .title {text-align:center; font-size:35px; color:red; position:relative; margin-top:10px; background-color:gray;}
  63.  
  64.  .news {font-size:20px; color:black; font-family:verdana; margin-top:10px; position:relative;
  65.  }
  66.  
  67.  a.news {font-size:17px; color:orange; text-align:center; position:relative; }
  68.  .info {font-size:14px; color:#00000; position:relatibe; border-bottom-style:dashed; border-color:red; margin-bottom: 3px; }
Dane wczytuje w prosty sposób:
  1. <?php
  2.  
  3. include('config.php'); //Plik z połączeniem oraz funkcjami
  4.  
  5. echo "<div id=\"menu_lewe\">";
  6.  
  7. main_menu();
  8.  
  9. echo "</div> <div id=\"news\">";
  10.  
  11. czytaj_news();
  12.  
  13. echo "</div>";
  14.  
  15. //etc,etc,itd,itd.....
  16.  
  17. ?>




Teraz nie wiem jak to zrobić. Czy tak aby biała przestrzeń się powiększała tzn parametr height się zwiększał i dostosowywał do newsa(ale równocześnie musi tak się dziać z pozostałymi dwoma div'ami) czy po prostu rozmiar pola mógłby taki zostać,ale news bylby stronnicowany i dopasowany do strony.

Przypominam,ze wczytywany jest z bazy.

Z góry dzięki i pozdrawiam winksmiley.jpg