Tristan Dahl (jazz_samurai) wrote in component_help,
Tristan Dahl
jazz_samurai
component_help

help with advanced layers ... EDIT: FIXED!

Hey all ... I have a weird problem here.

So, I used the square component tutorial, and then did a lot of extra editing to make it look like it does now. However, if you scroll down my main page, you noticed something strange with the headers of the Entry components (specifically, with the blue part where the entry date is). It seems that sometimes the light-blue part extends to all but 1 pixel on the left, and 1 pixel on the right, which is the desired behavior of my style. However, other times this "border" is bigger than one pixel. Sometimes it happens on one side, sometimes both.


Here is my print_entry_header function:


function print_entry_header(string content) {
  """
  <table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tr>
    <td class="dkLine" colspan="7"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
  </tr>
  <tr>
    <td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
    <td class="tabBg"  colspan="5"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
    <td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
  </tr>
  <tr>
    <td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
    <td class="tabBg"  colspan="5" width="100%"><font class="entryDate">$content</font></td>
    <td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
  </tr>
  <tr>
    <td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
    <td class="tabBg"  colspan="5"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
    <td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
  </tr>
  <tr>
    <td class="dkLine" colspan="7"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
  </tr>
  </table>
  """;

}



Any help or insight would be much appreciated.
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 5 comments