It appears that your styles are being applied in the second page.
screenshot: http://bit.ly/rlM9ws
The label width value is being overwritten, but you can be more specific with your CSS rule and that will help override the defaults.
The form may be inheriting other theme styles that are causing differences. I didn't really look that closely at that.
Also, a note here. You're using very generic style rules here that are ultimately going to cause you problems down the line. Not all inputs are created equal and I'm sure you're not expecting every radio button, checkbox and image button to all have the same margins as text inputs.
You're better off to specify the input type in your rule to avoid these pitfalls.. ex.
[css]
body #left .gform_wrapper input[type=text] {
margin-left: 50px
}
You can find out the proper way to target the form fields for CSS manipulation here..
http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples
and here's a couple of good resources that discuss CSS specificity if you're not familiar with it
http://css-tricks.com/855-specifics-on-css-specificity/
http://www.htmldog.com/guides/cssadvanced/specificity/
Posted 13 years ago on Tuesday September 13, 2011 |
Permalink