I have written some PHP code that works correctly under PHPEd using IE, but when I move it to our website and use IE8 and Firefox 3.6.3, it does not display correctly. I imagine it is something I am doing wrong, but I would like to see it either fail everywhere or work everywhere.
Here is the CSS stuff:
.nyt{
font: bold 16px 'trebuchet ms',helvetica,sans-serif;
font-weight: 800;
font-style: italic;
text-decoration: none;
color: white;
}
.nyt2{
font: bold 13px 'trebuchet ms',helvetica,sans-serif;
text-decoration: none;
color: white;
} |
and here is the actual PHP code:
function print_title($image,$title,$author,$price,$ean)
{ echo '<tr><td align="center"><a href=search0.php?EAN=' . $ean . '><p class="nyt"><strong>' . $title . '</strong><br><img src="' . $image["Large_Image"]->URL . '" width="80" height="110"></p>';
echo "<p class='nyt2'>$author<br>List Price: $<strike>$price</strike><br>Our Price: $" . number_format($price*0.75) . "<br></p></tr></a>";
} |
The purpose of the code is to display five items (5 iterations through print_title) that have a title, an image, and misc. info such that no matter where the user clicks, it will be a link to the appropriate page.
The purpose of the text-decoration: none; is to turn off the underlining for the title and the misc. info. In PHPEd, the underlining is turned off, and the text is white. From the actual website, in IE8, the underlining still appears and the text is white. For Firefox, the underlining still appears and the text is still blue or purple.
The website is
and the info appears in the left sidebar.
Help?