I'm trying to get the ad coop links to match the color themes on my page. I am using this php code right now, which I thought would change the link color through my CSS. Does anyone know how to alter this to get "the carpet to match the drapes"? this is my url www.myfloridahomesforsale.com Here is the code. <?php if (!function_exists('file_get_contents')) { function file_get_contents($url) { $handle = fopen($url, 'r'); $string = fread($handle, 4096000); fclose($handle); return $string; } } include ('ad_network.php'); echo preg_replace ("/<\/body>/i", '<div align="center" class="style26">' . $ad_network[0]. ' - ' . $ad_network[1]. ' - ' . $ad_network[2] . ' - ' . $ad_network[3] . ' - ' . $ad_network[4] . '</div></center></body>', file_get_contents(str_replace ('../', '', $_REQUEST['file']))); ?>
I've found that divs act funny when you include the align statement. Try using two divs: <DIV align="center"><DIV class="style26">
Your CSS would need the following addition: .style26 [color=red]a[/color] {font-size: x-small; color: #EBEBEB; font-family: Geneva, Arial, Helvetica, sans-serif; } Code (markup): or you could set the default colour on your anchors in the CSS as all other anchors appear to be styled by class anyway. BTW you are missing a closing </div> in your ad block. Mick