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™

Adjust width of input fields

s2Member Plugin. A Membership plugin for WordPress®.

Adjust width of input fields

Postby Magicmarker » April 22nd, 2011, 6:55 pm

http://chicacafe.redwebtestsite.com

My login fields are too wide. Where do I shorten those?
User avatar
Magicmarker
Registered User
Registered User
 
Posts: 41
Joined: April 15, 2011

Re: Adjust width of input fields

Postby toddz88 » April 22nd, 2011, 7:13 pm

I added this to my theme's main CSS file. It makes the input fields 300px wide, but you can adjust to your needs. The Select element is separate, since it should not get the padding and font-size too.


Code: Select all
/* input fields should not be 100% wide  */
form div.s2member-pro-paypal-form-section > div.s2member-pro-paypal-form-div input[type="text"],
form div.s2member-pro-paypal-form-section > div.s2member-pro-paypal-form-div input[type="password"],
form div.s2member-pro-paypal-form-section > div.s2member-pro-paypal-form-div textarea
{
   width: 300px;
   padding: 3px;
   font-size: 1em;
}
form div.s2member-pro-paypal-form-section > div.s2member-pro-paypal-form-div select {
   width: 300px;
}
User avatar
toddz88
Experienced User
Experienced User
 
Posts: 61
Joined: November 19, 2010

Re: Adjust width of input fields

Postby Magicmarker » April 22nd, 2011, 8:02 pm

Seemed to have no effect (?).
User avatar
Magicmarker
Registered User
Registered User
 
Posts: 41
Joined: April 15, 2011

Re: Adjust width of input fields

Postby toddz88 » April 22nd, 2011, 8:17 pm

You need to change the css selectors to target the specific elements you want to effect. On your site, try
Code: Select all
form#loginform input#user_login,
form#loginform input#user_pass {
width: 260px;
}

but since I see those elements have inline style="width: 100%", you might need to override it with
Code: Select all
width: 260px !important
User avatar
toddz88
Experienced User
Experienced User
 
Posts: 61
Joined: November 19, 2010

Re: Adjust width of input fields

Postby Magicmarker » April 22nd, 2011, 8:27 pm

Yes, I had to add the second suggestion as well but it worked! Thank you for your time!!
User avatar
Magicmarker
Registered User
Registered User
 
Posts: 41
Joined: April 15, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron