Premetto che sono alle prime armi col css quindi nn so quanto ho sbagliato dentro questo codice
CSS
codice:
#contenitorenews {
width:570px;
height:auto;
border-bottom:1px solid #FFCC33;
position:static;
}
PHP
Codice PHP:
$news = "Select * from news";
$cnews = mysql_query($news);
while ( $res = mysql_fetch_array($cnews)) {
echo "<center><div id='newscontainer'><table border='0' width='568px' height='auto'><tr><td align='left'><span class='titolonews'>$res[titolo]</span></td>";
echo "<td align='right'>$res[data]</td></tr>";
echo "<tr><td colspan='2' width='100%'><p align='justify'>$res[commento]</p></td></tr>";
echo "<tr><td colspan='2' width='100%' align='right'>$res[autore]</td></tr></table></div></center>";
} ?>