Forum Moderators: coopster
I want to explicity set the <a> hyperlink tag a particular color for this hyperlink only. Would someone please advise the correct syntax in the stylesheet and the line below.
The <td class="diddy"> get's overwritten by the <a> tag in the stylesheets. I want to specify an additional <a> tag color in the stylesheets...
<td class="diddy"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>';?></td>
Many thanks
Marcus
in css
.diddy A:link {text-decoration: none}
.diddy A:visited {text-decoration: none}
.diddy A:active {text-decoration: none}
.diddy A:hover {text-decoration: underline; color: red;}
Hope this helps. If not then try [google.com...]
Best regards
Michal Cibor
What about the following, i've defined a class in the stylesheet - where do i apply this to the following PHP? Basically want the hyperlink to be black!
$info_box_contents[] = array('align' => 'left',
'text' =>
'<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' .
thanks again for your help.
Marcus
This for some reason did not work - can understand the logic, just doesnt change the link color? anything i'm missing here? it's definately reading the stylesheet.css, cos if i change the .A style it changes the links....just don't seem to be able to enforce a seperate style against these links?
$info_box_contents[] = array('align' => 'left',
'text' =>
'<a class="diddy" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' .
Many thanks for your help.
Kind Regards
Marcus