Need help with this HTML code...

by zannix
8 replies
Hi guys, I'm basically doing an opt-in form and I'm using YMLP.com as my AR.

What I want to do is just move the form from the left to the middle and remove the frames (borders) of the table.

Can anyone please help me? I've spent 3 hours trying to fix this with no luck (no programming experience...)

Here's my page code:

<h3 style="text-align: center;">CONGRATULATIONS, VISITOR NUMBER #724!</h3>
<h2 style="text-align: center;"><span style="color: #ff0000;">YOUR <strong>PERSONAL*</strong>GOAL SETTING GUIDE!</span></h2>
<p style="text-align: center;"><img class="aligncenter" src="http://www.theplrmart.com/623-670-large/your-goal-setting-guide.jpg" alt="goal setting" width="300" height="300" /></p>

<form action="http://ymlp.com/subscribe.php?id=gmeweysgmgq" method="post" onsubmit="window.open( 'http://ymlp.com/subscribe.php?id=gmeweysgmgq','signup_popup','scro llbars=yes,width=600,height=450'); return true;" target="signup_popup">
<table border="0" cellspacing="0" cellpadding="5" align="center">
<tbody>
<tr>
<td style="text-align: center;" colspan="2"><span style="font-family: verdana, geneva; font-size: 10pt;"><strong>Where should we send this free guide?</strong></span></td>
</tr>
<tr>
<td style="text-align: center;" valign="top"><span style="font-family: verdana, geneva; font-size: 10pt;">E-mail address:</span></td>
<td style="text-align: center;" valign="top"><input type="text" name="YMP0" size="20" /></td>
</tr>
<tr>
<td style="text-align: center;" colspan="2"><input type="Submit" value="Send me the free guide" /></td>
</tr>
</tbody>
</table>
</form>
#code #html
  • Profile picture of the author touheed
    Hi zannix,
    I checked with the HTML codes & saw it's just in the way you want it (without any other CSS). I'm pretty much sure your website CSS is making it left aligned. Please give me your website url. Don't worry, it's just a few minutes task.

    Regards,
    Quazi Touheed
    Signature
    WPAmazonProfits - The Amazing Amazon WordPress Plugin
    WPPasswordResetTool - Simple Tool To Recover Hacked WordPress Sites
    WPeContactForm - Featuring Digital Signature
    {{ DiscussionBoard.errors[6392197].message }}
  • Profile picture of the author dconjar
    This is in an email you're working on, correct?

    If so, can you preview the email, view the source, and paste the source code here?
    {{ DiscussionBoard.errors[6392544].message }}
  • Profile picture of the author Ttrain
    What browser are you viewing this in? Because on chrome it's centered, looks good, and there's no visible tables or borders.
    {{ DiscussionBoard.errors[6395204].message }}
    • Profile picture of the author zannix
      Free Life Tips: Home this is the site i tried pasting the code to... since i didnt get it to fit in the middle, i now used an image which leads to the optin....

      but i'd really like to have that optin box instead of the image :/
      Signature
      All you can do is all you can do - Art Williams
      {{ DiscussionBoard.errors[6396734].message }}
  • Profile picture of the author Fahmzie
    Paste this style code above the table:

    <style type="text/css" media="screen">
    #ymlptable td, #ymlptable th { border:none; }
    #ymlptable { margin:auto; }
    </style>
    Change your table open tag from this

    <table border="0" cellspacing="0" cellpadding="5" align="center">
    to this:

    <table border="0" cellspacing="0" cellpadding="5" id="ymlptable">
    Hope helps
    {{ DiscussionBoard.errors[6396889].message }}
    • Profile picture of the author zannix
      Originally Posted by Fahmzie View Post

      Paste this style code above the table:



      Change your table open tag from this


      to this:



      Hope helps
      It worked! Thank you so much!
      Signature
      All you can do is all you can do - Art Williams
      {{ DiscussionBoard.errors[6397523].message }}
      • Profile picture of the author touheed
        Originally Posted by zannix View Post

        It worked! Thank you so much!
        Good to see that Fahmzie has provided the solution. Cheers!
        Signature
        WPAmazonProfits - The Amazing Amazon WordPress Plugin
        WPPasswordResetTool - Simple Tool To Recover Hacked WordPress Sites
        WPeContactForm - Featuring Digital Signature
        {{ DiscussionBoard.errors[6399003].message }}
  • Profile picture of the author dconjar
    Wow, that theme has a lot of unnecessary markup. Uses 16 divs to make the body when it only needs one.
    {{ DiscussionBoard.errors[6397261].message }}

Trending Topics