Announcement

Collapse
No announcement yet.

Text under image

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

    Text under image

    Hi,
    I want to be able to put text under a centered image in fragments, after a bit of research I've produced the following template code which appears to work. I know very little about HTML so can one of the experts on here be kind enough to tell me if it's OK, I don't want to implement it and cause myself other problems
    Thanks,
    Peter

    <!-- centerImage HTML begin -->

    <tr>
    <td colspan="3" valign="top">

    NETQUOTEVAR:FRAGMENTANCHOR
    <table border="0" width="100%" cellspacing="5" cellpadding="1">
    <tr>
    <td align="center" width="100%">NETQUOTEVAR:BROCHURE_IMAGE</td>
    <tr>
    <td>NETQUOTEVAR:BROCHURE_TEXT</td>
    </tr>
    </tr>
    </table>

    </td>
    </tr>

    <!-- centerImage HTML end -->

    #2
    Code:
    <!-- centerImage HTML begin -->
    <tr><td colspan="3" valign="top">
    NETQUOTEVAR:FRAGMENTANCHOR
    <table border="0" width="100%" cellspacing="0" cellpadding="5">
    <tr><td align="center" valign="top">NETQUOTEVAR:BROCHURE_IMAGE</td></tr>
    <tr><td align="center" valign="top">NETQUOTEVAR:BROCHURE_TEXT</td></tr>
    </table>
    </td></tr>
    <!-- centerImage HTML end -->
    The bits in red I cannot confirm as I don't know where they are coming from or what they are doing. I expect they are part of the overall layout in some way, so i have left them alone as you have must have gotten them from somewhere.

    The rest of the code has been amended so that you have a 2 row/1 column table, with the top row having a centered image and the bottom row having centered text. There are more elegant and streamlined ways, but in V7, i certainly don't think one more, or one less table will make any difference at all.

    Comment


      #3
      Hi,
      I started off with the 'left image and text' template below, which may explain what it was doing before I changed it, it's in Actinic developer V707000:

      <!-- LeftImage HTML begin -->

      <tr>
      <td colspan="3" valign="top">

      NETQUOTEVAR:FRAGMENTANCHOR
      <table border="0" width="100%" cellspacing="5" cellpadding="1">
      <tr>
      <td align="center" width="100%">NETQUOTEVAR:BROCHURE_IMAGE</td>
      <td>NETQUOTEVAR:BROCHURE_TEXT</td>
      </tr>
      </table>

      </td>
      </tr>

      <!-- LeftImage HTML end -->

      Comment


        #4
        That should be perfect then.

        Comment

        Working...
        X