Jump to content

Vertical align labels custom client fields


Opendial

Recommended Posts

Hi,

 

Currently i have some custum client fields in viewcart.tpl

 

This is the code:

 

{foreach key=num item=customfield from=$customfields}
<tr><td class="fieldlabel">{$customfield.name} </td><td class="fieldarea" colspan="3">{$customfield.input} <br/> {$customfield.description}</td></tr>
{/foreach}

 

It looks like this:

 

labelalign.png

 

I would like to position the label text in the middle of the field (vertically), right now it's at the bottom.

 

I did this:

 

{foreach key=num item=customfield from=$customfields}
<tr><td class="fieldlabel" <p <span style=vertical-align="middle">{$customfield.name}</span></p> </td><td class="fieldarea" colspan="3">{$customfield.input} <br/> {$customfield.description}</td></tr>
{/foreach}

 

But i see no change. What would be the proper formatting here?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated