daskog Posted May 1, 2005 Share Posted May 1, 2005 i whant to set the font color ONLY for the Information.php. I tryed to change some colors in the stylesheet but it allso effected some other elements. this is the text i whant to change the color for: Shipping & Returns Privacy Notice Conditions of Use Contact Us allso the hover. Im not 100% sure how the font controll are set in the stylesheet. So i need a little bit help. please point me to any other post if avalible. Tnx. Link to comment Share on other sites More sharing options...
boxtel Posted May 2, 2005 Share Posted May 2, 2005 i whant to set the font color ONLY for the Information.php.I tryed to change some colors in the stylesheet but it allso effected some other elements. this is the text i whant to change the color for: Shipping & Returns Privacy Notice Conditions of Use Contact Us allso the hover. Im not 100% sure how the font controll are set in the stylesheet. So i need a little bit help. please point me to any other post if avalible. Tnx. <{POST_SNAPBACK}> well, you can make separate classes in your normal stylesheet or include a style tag in those pages which will overrule the normal ones. Treasurer MFC Link to comment Share on other sites More sharing options...
daskog Posted May 4, 2005 Author Share Posted May 4, 2005 ok..i've made a seperate class as you sayd. But! now the links don't work! when i hover the diffrent links: Shipping & Returns Privacy Notice Conditions of Use Contact Us nothing happens! just a underline is showing. and the font is Italic! (why!?) i managed to change the color tough..but what good is if the links don't work. :-" Maby some can write the Class/code for me and i can take it frome there. i simply got no magic cards left in my pocket...im stuck Link to comment Share on other sites More sharing options...
boxtel Posted May 4, 2005 Share Posted May 4, 2005 ok..i've made a seperate class as you sayd. But! now the links don't work! when i hover the diffrent links: Shipping & Returns Privacy Notice Conditions of Use Contact Us nothing happens! just a underline is showing. and the font is Italic! (why!?) i managed to change the color tough..but what good is if the links don't work. :-" Maby some can write the Class/code for me and i can take it frome there. i simply got no magic cards left in my pocket...im stuck <{POST_SNAPBACK}> but why do you mess with the stylesheet if you do not know how ? in the box information.php you will find this code : $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); you change this to : $info_box_contents[] = array('params' => ' class="YOUR_CLASS" ', 'text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); then if you have set your class definition right, the entire information box content will have that class YOUR_CLASS. Treasurer MFC Link to comment Share on other sites More sharing options...
daskog Posted May 4, 2005 Author Share Posted May 4, 2005 sorry i forgot to mention that i have a modifyed oscommerce! My information.php code looks somthin like this: <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="18" class="design-3"><?php echo BOX_HEADING_INFORMATION ;?></td> </tr> <?php echo '<tr><td height="18" class="design-8"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></td></tr>'; echo '<tr><td height="18" class="design-8"><a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></td></tr>'; echo '<tr><td height="18" class="design-8"><a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a></td></tr>'; echo '<tr><td height="18" class="design-8"><a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></td></tr>'; ?> </table> <table width="100%" border="0" cellspacing="2" cellpadding="0"> <tr> <td align="center"><a href="#"><img src="images/design/cc.gif" border="0"></a></td> </tr> </table> </td> </tr> Link to comment Share on other sites More sharing options...
boxtel Posted May 4, 2005 Share Posted May 4, 2005 sorry i forgot to mention that i have a modifyed oscommerce!My information.php code looks somthin like this: <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="18" class="design-3"><?php echo BOX_HEADING_INFORMATION ;?></td> </tr> <?php echo '<tr><td height="18" class="design-8"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></td></tr>'; echo '<tr><td height="18" class="design-8"><a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></td></tr>'; echo '<tr><td height="18" class="design-8"><a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a></td></tr>'; echo '<tr><td height="18" class="design-8"><a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></td></tr>'; ?> </table> <table width="100%" border="0" cellspacing="2" cellpadding="0"> <tr> <td align="center"><a href="#"><img src="images/design/cc.gif" border="0"></a></td> </tr> </table> </td> </tr> <{POST_SNAPBACK}> ok, then in your stylesheet you would have something like : .design-8 { font-weight: normal; font-size: 14px; text-decoration: none;} .design-8 a:link, .design-8 a:visited { color: #6699cc; } .design-8 a:hover { color: orange; text-decoration: none;} .design-8 a:active { color: orange; } Treasurer MFC Link to comment Share on other sites More sharing options...
daskog Posted May 4, 2005 Author Share Posted May 4, 2005 Tnx for sutch a quick solution.. works good now =) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.