Support for Envato Buyers › Forums › Samsara › Form styles
- This topic has 10 replies, 2 voices, and was last updated 9 years, 10 months ago by FocuxTheme Support.
-
AuthorPosts
-
-
February 27, 2015 at 11:11 am #7641lucasplunkettMember
Hi Again,
I’m wondering where the styles for the contact form are kept? I don’t use the stock form at all but the styles for it are still over riding all other form plugins that I use and I do not want that.
What can I do?
-
February 27, 2015 at 11:05 pm #7648FocuxTheme SupportKeymaster
Hi
Actually, you mean that you want to change the style of the form elements like input, textarea or button, right?
I defined the style of these element in reset.css, you can redefine the appearance for them with your custom CSS in “Samsara options > custom code”.
Thanks
-
February 28, 2015 at 11:38 am #7655lucasplunkettMember
Thanks!
-
February 28, 2015 at 1:07 pm #7657lucasplunkettMember
Can you please tell me how I can center the form fields in the reset.css file?
Thanks.
-
March 1, 2015 at 12:24 am #7663FocuxTheme SupportKeymaster
You can find the CSS selector or ID of the form or form container with chrome developer tool or directly view the source code of your page, let’s say “#form-1”, then try to add the following custom CSS
#form-1{text-align:center;}
-
March 2, 2015 at 8:53 am #7677lucasplunkettMember
Hi Johnny,
This doesn’t work for me. Is there anything in the rest.css file that is aligning the text boxes to the left?
The reason I ask is because I am using gravity forms, and the form plugin has the option to centre the text boxes but it’s not working… I’m assuming the reset.css file is overriding these settings as well.
-
March 2, 2015 at 8:08 pm #7682FocuxTheme SupportKeymaster
No, I haven’t aligned the input to left in reset.css, which page I can check the form with chrome dev tool?
-
March 3, 2015 at 9:06 am #7691lucasplunkettMember
If you go to the homepage http://fullframeproductions.com.au, you will see that the boxes of the form align to the left.
If you shrink the window so the form goes onto a second line, you will see this. If it was centred, it would be under the title “take the first step” and in the centre of the screen but it’s not.
Thanks a lot.
-
March 3, 2015 at 8:51 pm #7697FocuxTheme SupportKeymaster
I see. Because of the following CSS in the reset.css
input[type=text], textarea { margin: 5px 1px 3px 0px; }
You need to reset the margin value for input with the following custom CSS
input[type=text], textarea { margin: 5px auto 3px; }
For the other form elements like button, textarea and so on, you can use the same method to reset their margin value.
Thanks
-
March 9, 2015 at 11:47 am #7746lucasplunkettMember
Thank you!!
-
March 9, 2015 at 11:58 pm #7757FocuxTheme SupportKeymaster
It’s my pleasure!
-
-
AuthorPosts
- You must be logged in to reply to this topic.