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. Link to comment https://forums.phpfreaks.com/topic/154210-solved-css-styles-for-links/ 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> Link to comment https://forums.phpfreaks.com/topic/154210-solved-css-styles-for-links/#findComment-810696 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? Link to comment https://forums.phpfreaks.com/topic/154210-solved-css-styles-for-links/#findComment-810709 Share on other sites More sharing options...
Anxious Posted April 15, 2009 Author Share Posted April 15, 2009 Thank you pkSML Link to comment https://forums.phpfreaks.com/topic/154210-solved-css-styles-for-links/#findComment-810733 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.