Anxious Posted April 15, 2009 Share Posted April 15, 2009 Not too sure if this is the right category. However, I can do css styles with all the other php texts, but when it comes to links, I cant get to set a colour. Here is my css and then an example of the link. .style10 { font-size: 16px; color: #000000; font-family: "Times New Roman", Times, serif; text-decoration: underline; font-style: normal; line-height: normal; font-weight: normal; } <td><span class="style10"><? echo "<a href=\"profile?user=$session->username\">Profile </a>" ?></span></td> Any idea what the problem would be, the links are suppose to be solid black, underlined. Quote Link to comment Share on other sites More sharing options...
pkSML Posted April 15, 2009 Share Posted April 15, 2009 Put your span tag inside the a tag. <td><? echo "<a href=\"profile?user=$session->username\"><span class=\"style10\">Profile</span></a>" ?></td> Quote Link to comment Share on other sites More sharing options...
FaT3oYCG Posted April 15, 2009 Share Posted April 15, 2009 cant you also just use the class on the a tag? Quote Link to comment Share on other sites More sharing options...
Anxious Posted April 15, 2009 Author Share Posted April 15, 2009 Thank you pkSML Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.