Click to See Complete Forum and Search --> : How would I do this?


ss1289
12-15-2007, 09:55 PM
I want the link to have a different style than the <td> tag, but I only want a style for this particular link rather than have the same style as all the other links in the page. I tried using a class in the <a> tag, I tried extending the <td> class (.course_text a{}). Neither worked. NOTE: I want to keep the link within the <td> tag.

echo "<td class=\"course_text\" colspan=\"18\">".$course_name." <a href=\"editcourse.php\">[Edit Course]</a></td>";

How can I do this?

72newbie
12-15-2007, 11:40 PM
have you tried using a style tag in the <a href section?<STYLE type="text/css">
<!--
a { color: green}
-->
</STYLE><table>

<tr>
<td><a href="">ggy</a></td>
<td><a href="" style="color: blue">ggy</a></td>
</tr>
</table>