Home : Products : Links 2.0 : Discussions :

Products: Links 2.0: Discussions: Re: [LordStryfe] Problem: Edit Log

Here is the list of edits for this post
Re: [LordStryfe] Problem
Only part of the code is in the templates, the other part is coming from site_html_templates, sub print_cat.

Here's a problem:

--home.html----
<div align="left"><font face="arial" size="3"> <font size="2" face="Arial, Helvetica, sans-serif">
<div class="margin"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">
---end home.html----
---begin print_cat output---
<div class="margin"><table width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">

</span></dd></dl></td><td class="catlist" valign="top">
</span></dd></dl></td></tr></table></div>

---end print_cat output---
---continue home.html---
</td></tr></table></div></font>
</font></font></div>

---------------------------

Breakdown:
The red part is doing nothing, eliminate it. Also, I'm pretty sure you can't use an HTML tag (align) to tell a CSS tag (div) what to do...

The green part is pretty much OK, except you don't need any of it. All that info is created next. Also, you are not using CSS (the style sheet is not being used), so get rid of all references to it, as in <div class="margin"> and class="catlist", and </span>.

The blue part is coming from site_html_templates, you have to go into that code to change it. Do NOT use frontpage! Make a backup! Get rid of CSS markup, make the table 100% (why not?), make BOTH of the the table data tags 50% <td width="50%">.

The other red part can also be removed.

So, in home.html, all you need in that spot is:

<table border=0 cellspacing=7 cellpadding=2 width="600"><tr>
<td valign=top nowrap align="left">
<td width="445">
<!-- begin print_cat output -->
<%category%>
<!-- end print_cat output -->
</td>
<td align=right valign=top bgcolor="#dcdcdc" width=155>


Note the <!-- comments --> , leave 'em in...
Try that, see what happens...


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Jan 2, 2003, 12:50 AM

Edit Log: