Hello,
I am trying to stylize the event in the front page:
I wonder why it does not work.
index.php
<?php
include('include/con_database.php');
$result = mysql_query("SELECT * FROM dynamic_content WHERE CatID='4' LIMIT 2");
echo '<br><br>';
echo '<table border="0"><tr>';
while ($data = mysql_fetch_array($result)){
echo '<div id="banner">';
echo '<td width="25%">';
echo '<div id="title">';
echo '<a href="http://localhost/IndonusaCMS/event_article.php?id='.$data['ID'].'">'.$data['title'].'</a>';
echo '</div>';
echo '<div id="text">'.substr($data['content'], 0, 150).'</div>'.'<br>';
echo '</td>';
echo '<td width="25%">';
echo '<div id="gambar">'.'<img src="images/events/thumb/' . $data['images'] . '">'.'</div>'.'<br>';
echo '</td>';
echo '</div>';
}
echo '</tr></table>';
?>
style.css
#banner #title a:link{font-size: 15px; text-decoration: none; color: white; width: 50px; z-index: 2; font-weight:bold;}
#banner #title a:visited{font-size: 15px; text-decoration: none; color: white; width:50px; z-index: 2;}
See, the title suppose to be white color and has no underline, but this is not the case.
Why is it?
Thanks in advance.