PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

How To Center Pro Form

s2Member Plugin. A Membership plugin for WordPress®.

How To Center Pro Form

Postby bradjbarton » December 26th, 2011, 10:27 am

I have reduced the width of my Pro payment form to 75% and attempted to center it with this :

<link rel="stylesheet" href="../commons/style.css" type="text/css"/>
<table width="75%" align="center" cellspacing="0" cellpadding="0">
<td>
[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="Bronze Plan - $9.97 USD Monthly - Automatic Recurring Monthly Charge For Ongoing Access" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.sitesteering.com" ta="0" tp="0" tt="D" ra="9.97" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="US" captcha="0" /]
</td>
</tr>
<tr><td height="10px"></td></tr>
</table>

It does make the width 75%, however, it does not center the table. I have tried a number of the common HTML centering techniques, and removed the style sheet reference, but nothing I have tried centers the Pro form table after reducing the width to 75%.

Any ideas how to solve this?
User avatar
bradjbarton
Registered User
Registered User
 
Posts: 20
Joined: December 1, 2011

Re: How To Center Pro Form

Postby meets2 » December 27th, 2011, 12:56 am

Hello, I'm trying to do the same thing.
I've tried using the above code, but it also makes the background of the form gray.
I'd like to set the max width of forms, without changing background color.

Main reason is to make it more compact and better designed. Avoiding user to have to traverse screen from left to bottom right to click on "Submit Form".

Thank you
User avatar
meets2
Registered User
Registered User
 
Posts: 18
Joined: December 25, 2011

Re: How To Center Pro Form

Postby Cristián Lávaque » December 27th, 2011, 6:06 am

Have you tried margin: 0 auto;?

Could you post a link to the page with the form to take a look?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How To Center Pro Form

Postby meets2 » December 27th, 2011, 6:18 am

Can you please tell me where I should insert the margin: 0 auto; code?
I am developing locally so I don't think you can access my dev site, or can you?
User avatar
meets2
Registered User
Registered User
 
Posts: 18
Joined: December 25, 2011

Re: How To Center Pro Form

Postby Cristián Lávaque » December 27th, 2011, 6:26 am

No, I can't if it's in your local machine.

Well, you'd use it to style the div that contains the pro-form. http://google.com/search?q=center+div+margin+auto
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How To Center Pro Form

Postby meets2 » December 27th, 2011, 6:51 am

I couldn't seem to get it to work with your code but it helped me find this

Code: Select all
<div style="margin-left; width:60%;">
            proform
</div>


I'll try to make it look better in a few days.
User avatar
meets2
Registered User
Registered User
 
Posts: 18
Joined: December 25, 2011

Re: How To Center Pro Form

Postby bradjbarton » December 27th, 2011, 10:23 am

The link to an example of the issue is http://www.sitesteering.com/plan-level-1/ , although I have the same issue on all the Pro payment pages.

This does not work to center it (currently in use on example page) -
<table width="75%" align="center" cellspacing="0" cellpadding="0">

This did not work -
margin: 0 auto;, although the format/syntax appears different than what is currently in use to reduce the width to 75%.

And, the example from meets2 did not change the appearance at all.

I am reasonably sure that there must be a way to do this, and that I have either not entered the correct code, or the code I entered was not the proper syntax to achieve the desired result. With the exception of adding the line to reduce the width to 75% this is standard Pro form code. Since you provide the exact method to reduce form width, if desired, it would stand to reason that you have also figured out how to re-center the form on the theme background. Can you simply tell me the exact (copy and paste) line of code I need to both reduce width to 75% and re-center the form?
User avatar
bradjbarton
Registered User
Registered User
 
Posts: 20
Joined: December 1, 2011

Re: How To Center Pro Form

Postby meets2 » December 28th, 2011, 12:38 am

Hello,
My example code makes the form 60% less wide.
I'm using Atahualpa free theme.
I did not want to center it, just make it smaller.

Thank you
User avatar
meets2
Registered User
Registered User
 
Posts: 18
Joined: December 25, 2011

Re: How To Center Pro Form

Postby Cristián Lávaque » December 29th, 2011, 4:32 am

I could center and reduce the width using styles, without a problem. Try this:

Code: Select all
<div style="width: 75%; margin: 0 auto;">
[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="Bronze Plan - $9.97 USD Monthly - Automatic Recurring Monthly Charge For Ongoing Access" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.sitesteering.com" ta="0" tp="0" tt="D" ra="9.97" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="US" captcha="0" /]
</div>



I hope that helps.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How To Center Pro Form

Postby bradjbarton » December 29th, 2011, 7:22 am

That works. Now I have a cell padding issue, but I'll work on that. Thanks.
User avatar
bradjbarton
Registered User
Registered User
 
Posts: 20
Joined: December 1, 2011

Re: How To Center Pro Form

Postby Cristián Lávaque » December 29th, 2011, 10:58 pm

Cool. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How To Center Pro Form

Postby bradjbarton » January 2nd, 2012, 9:46 am

OK on the <div style="width: 75%; margin: 0 auto;"> for centering, but I cannot resolve the cell padding issue.

Please check the bottom border of the white background area at http://www.sitesteering.com/plan-level-1/. Click on one of the cards to expand the page and you will see that the issue follows the page, regardless of length.

And then check http://www.sitesteering.com/plan-level-2/ for comparison.

The only change is the addition of the <div style="width: 75%; margin: 0 auto;">. My old table references have been removed from both pages, but the table references did not alter this bottom cell border anyway.

Any ideas on this?
User avatar
bradjbarton
Registered User
Registered User
 
Posts: 20
Joined: December 1, 2011

Re: How To Center Pro Form

Postby Raam Dev » January 3rd, 2012, 4:20 pm

Those two links redirect to http://www.sitesteering.com/sms-text-vo ... g-options/ (which appears to be your s2Member Member Options page).
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: How To Center Pro Form

Postby bradjbarton » January 3rd, 2012, 10:59 pm

No, they are PayPal Pro payment pages, but one of the programmers apparently mis-understood the page level restrictions and changed them to the membership levels today. Sigh. Please recheck it.
User avatar
bradjbarton
Registered User
Registered User
 
Posts: 20
Joined: December 1, 2011

Re: How To Center Pro Form

Postby Raam Dev » January 4th, 2012, 5:57 pm

This page: http://www.sitesteering.com/plan-level-1/ still redirects to the Membership Options page.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: How To Center Pro Form

Postby bradjbarton » January 4th, 2012, 7:49 pm

Sigh. Try it again.
User avatar
bradjbarton
Registered User
Registered User
 
Posts: 20
Joined: December 1, 2011

Re: How To Center Pro Form

Postby Raam Dev » January 4th, 2012, 9:10 pm

Comparing the HTML for the two pages, you can see where the problem is.

Here's the working page:

Code: Select all
<div id="wrapper">
   <style>
   <div id="launchheader">
   <div id="launchheaderbottom"></div>
   <div id="launchbk">
   <div id="launchfooter"></div>
</div>


Notice how the launchfooter DIV is located inside the wrapper DIV? That's where it should be. (The launchfooter DIV is what creates the bottom of your white frame.)

Now look at the broken page:

Code: Select all
<div id="wrapper">
   <style>
   <div id="launchheader">
   <div id="launchheaderbottom"></div>
   <div id="launchbk">
      <div id="launchvideocontainer" style="width:; height:;">
      <div id="launchinnermain">
      <div id="launchfooter"></div>
   </div>
   <div id="wrapper"> </div>
   <div id="footer">
   <div style="text-align: center;">
</div>


Notice where launchfooter is now? It's inside the launchbk DIV. That's not where it's supposed to be.

I'm not sure how your templates are set up or if you're doing anything else on these pages in terms of creating the HTML, but something is screwing up the DIVs. If you create all the launch DIVs inside the WordPress page editor, then you're missing a closing </div> somehwere and that's screwing things up.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: How To Center Pro Form

Postby bradjbarton » January 5th, 2012, 11:55 am

Hey Raam - perfect. Thanks for your follow through and understanding of the issue. The solution was simple after you pointed out my error.

Could you do me a favor and check out another issue that I am trying to resolve here:

viewtopic.php?f=4&t=16210&p=59782#p59782

Post = Member Level Re-direct & Link Visibility
User avatar
bradjbarton
Registered User
Registered User
 
Posts: 20
Joined: December 1, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron