Announcement

Collapse
No announcement yet.

Header made of 2 pics not level

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Header made of 2 pics not level

    Hi!

    I´m working on a new forum, and as I have some lack of knowledge I´ve met a minor problem with my header. The header consists of two pics,( made up of one pic cut in two parts,) but after I´ve changed the header code to insert the second pic the pics are not even.

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" height="130px" />
    <tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]"><img src="byprat/misc/bypratheader.jpg" border="0" />
            <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
        </td>
    </tr>
    </table>
    <!-- /logo -->
    As you see from the attached pic the two pics are not level, and as I have some lack of knowledge I don´t know how to correct this problem.


    I would appreciate any help.

    With regards,

    Thor B
    Attached Files
    Last edited by eplemaskin; Mon 20th Apr '09, 5:54am.

  • #2
    Trying removing the <else /> &nbsp; from your second TD. If you are not going to use advertising, then remove the whole If statement.

    Also, with reguarding to images, a good habit is to set hspace and vspace to 0.

    With the <else /> &nbsp; removed:

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" height="130px" />
    <tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" vspace="0" hspace="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[left]"><img src="byprat/misc/bypratheader.jpg" border="0" vspace="0" hspace="0" />
            <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]</if>
        </td>
    </tr>
    </table>
    <!-- /logo -->
    With the IF statement gone:

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" height="130px" />
    <tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" vspace="0" hspace="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[left]"><img src="byprat/misc/bypratheader.jpg" border="0" vspace="0" hspace="0" /></td>
    </tr>
    </table>
    <!-- /logo -->

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X