schwim
09-25-2007, 06:18 PM
Hi there everyone,
I'm in a little bit of a pickle. I've been developing a site, and adding classes when needed, and to be honest, it's still very early on and I would have hoped that something as simple as this wouldn't have had a problem, but here I am :)
All links but two are operating correctly. I have a testimonial box at the top of the page, the body in a table and then the footer. The footer and testimonial sections share link traits.
Two links in the testimonial section are inheriting the main link traits, even though they're set to use the class I created for the footer. The link directly above uses the identical class, and it is operating properly:
CSS:
<style type="text/css">
a:link {color: #0b5002;}
a:visited {color: #105307;}
a:hover {color: #117b03;}
a:active {color: #19b704;}
a:link.footlink {color: #ffffff;}
body {background-color: #173928; }
span.testtitle {
font-family: Verdana,Geneva,Helvetica;
font-size: 12px;
font-weight: bold;
color: #B0A07D; }
span.testbody {
font-family: Verdana,Geneva,Helvetica;
font-size: 10px;
color: #d9d1bf; }
td {
font-family: Verdana,Geneva,Helvetica;
font-size: 14px; }
p.footer {
font-family: Verdana,Geneva,Helvetica;
font-size: 9px;
color: #FFFFFF; }
</style>
source:
echo("<span class='testbody'>$testtext <a class='footlink' href=\"$scripturl/index.php?id=$id\" onclick=\"NewWindow(this.href,'submit','".$main_width."','600','yes','center');return false\" onfocus=\"this.blur()\">"._BLOCK_VIEWTHISTEST."</a></span>
<hr>");
}
echo("</td>
</tr>");
if($block_showauth == 1) {
echo("<tr>
<td align='right'>
<table width='100%'>
<tr>
<td>
<span class='testbody'>
<!--Problem!--><a class='footlink' href=\"$scripturl\" onclick=\"NewWindow(this.href,'submit','".$main_width."','600','yes','center');return false\" onfocus=\"this.blur()\">"._COM_VIEWALLTEST."</a> -|-
<!--Problem!--><a class='footlink' href=\"$scripturl/form.php\" onclick=\"NewWindow(this.href,'submit','600','400','yes','center');return false\" onfocus=\"this.blur()\">"._COM_SUBMITOWN."</a>
</span>
</td>
<td align='right'>
<span class='testtitle'>$author</span>
</td>
</tr>
</table>
</td>
I have tried a lot of things, including new td class to handle this, but I did more harm than good, breaking the footer td.
Can anyone help me figure out why I can't force these links to use the 'footlink' class?
thanks,
json
I'm in a little bit of a pickle. I've been developing a site, and adding classes when needed, and to be honest, it's still very early on and I would have hoped that something as simple as this wouldn't have had a problem, but here I am :)
All links but two are operating correctly. I have a testimonial box at the top of the page, the body in a table and then the footer. The footer and testimonial sections share link traits.
Two links in the testimonial section are inheriting the main link traits, even though they're set to use the class I created for the footer. The link directly above uses the identical class, and it is operating properly:
CSS:
<style type="text/css">
a:link {color: #0b5002;}
a:visited {color: #105307;}
a:hover {color: #117b03;}
a:active {color: #19b704;}
a:link.footlink {color: #ffffff;}
body {background-color: #173928; }
span.testtitle {
font-family: Verdana,Geneva,Helvetica;
font-size: 12px;
font-weight: bold;
color: #B0A07D; }
span.testbody {
font-family: Verdana,Geneva,Helvetica;
font-size: 10px;
color: #d9d1bf; }
td {
font-family: Verdana,Geneva,Helvetica;
font-size: 14px; }
p.footer {
font-family: Verdana,Geneva,Helvetica;
font-size: 9px;
color: #FFFFFF; }
</style>
source:
echo("<span class='testbody'>$testtext <a class='footlink' href=\"$scripturl/index.php?id=$id\" onclick=\"NewWindow(this.href,'submit','".$main_width."','600','yes','center');return false\" onfocus=\"this.blur()\">"._BLOCK_VIEWTHISTEST."</a></span>
<hr>");
}
echo("</td>
</tr>");
if($block_showauth == 1) {
echo("<tr>
<td align='right'>
<table width='100%'>
<tr>
<td>
<span class='testbody'>
<!--Problem!--><a class='footlink' href=\"$scripturl\" onclick=\"NewWindow(this.href,'submit','".$main_width."','600','yes','center');return false\" onfocus=\"this.blur()\">"._COM_VIEWALLTEST."</a> -|-
<!--Problem!--><a class='footlink' href=\"$scripturl/form.php\" onclick=\"NewWindow(this.href,'submit','600','400','yes','center');return false\" onfocus=\"this.blur()\">"._COM_SUBMITOWN."</a>
</span>
</td>
<td align='right'>
<span class='testtitle'>$author</span>
</td>
</tr>
</table>
</td>
I have tried a lot of things, including new td class to handle this, but I did more harm than good, breaking the footer td.
Can anyone help me figure out why I can't force these links to use the 'footlink' class?
thanks,
json