I have 4 files:
lib.php - has my functions
index.php - main page
header.php - has the CommonHeader I use for each page
phrozenphan.css - my css file
Now in lib.php I have this code for my quicklinks function:
<br />function quicklinks() { // Quick Links Function<br /> $string = "";<br /> $query = mysql_query("SELECT * FROM `QuickNav` LIMIT 0,30") or die(mysql_error());<br /> while ($row = mysql_fetch_array($query)) {<br /> extract($row);<br /> $string .= "<a href=\"$Link\" style=\"font1\">$Title</a> | ";<br /> }<br /> $string = rtrim($string, "| ");<br /> echo $string;<br /> }<br />
If you look at the link with style="color: font1" you see what I might be having a problem with. because on header.php I call the css file. So on index.php, I include header.php and call the commonheader function. In the commonheader function I include lib and css file. But for some reason, it won't display the color set in font1, it just displays the normal link color. Is there a way to fix this?