Guest Posted August 16, 2006 Share Posted August 16, 2006 Hey guys, Have a look at my code below, I have two questions really, but both relating to the exact same thing. My problem is, I try to add class e.g class=footer or class=headerLolo (new one I made) onto the code I linked but it doesn't seem to work. I have put links into my header> <table border="0" width="100%" align="center" cellspacing="0" cellpadding="5"> <tr class="headerNavigation"> <td> <?php if (tep_session_is_registered('customer_id')) { echo '<a href="' . tep_href_link(FILENAME_LOGOFF) . '" class=headerLolo>Logoff</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_LOGIN) . '" class=headerLolo>Logon</a>'; } ?></td> I have added this into my style sheet for the headerLolo for the above links TD.headerLolo { font-family: sans-serif; font-size: 10px; background: #999999; color: #ffffff; font-weight : bold; } A.headerLolo { color: #FFFFFF; } A.headerLolo:hover { color: #ffffff; I have put links into my footer (just want to use the footer class for this one)> <table border="0" width="100%" cellspacing="0" cellpadding="5"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <a href="http://www.xxx.co.nz/index.php?currency=PPD"><class="footer">?PD</a> | <a href="http://www.xxx.co.nz/index.php?currency=EUR">?EU</a> | <a href="http://www.xxx.co.nz/index.php?currency=US">$US</a> | <a href="http://www.xxx.co.nz/index.php?currency=NZD">$NZ</a> </td> </tr> </table> Nothing seems to be working, help would be very much appreciated - excuse the cloak and dagger B) . If anybody knows any place where I can learn PHP from stratch it would be good too :) Thanks, Mitchell Link to comment Share on other sites More sharing options...
Guest Posted August 16, 2006 Share Posted August 16, 2006 you need to put double quotes around these strings class="headerLolo" and hit refresh on your browser when you change the stylesheet to update its cache. Link to comment Share on other sites More sharing options...
Guest Posted August 25, 2006 Share Posted August 25, 2006 sorry buddy this didn't work for me, instead I got a blank white box where the writing should be, anything else? thanks Mitch Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.