Using the Sky theme (7.x-3.0-rc1) I am having difficulty getting form labels (generated by the webform module) to be displayed correctly inline, rather than above the field.
Regardless of whether I set the label to be "above" or "inline" (in webform), it is always displayed above the field.
I have narrowed the problem down to the "forms.css" file in Sky, near line 64, where .form-item label has a display:block; attribute. This appears to be overriding a label definition which is introduced later by the css of the actual webform module.
If I comment out this attribute (from Sky's forms.css), then things work as expected... I am not a CSS guru but I am wondering what side effects there might be from doing this? (ie why is display:block; there in the first place? and why only in the Sky theme?)
You should be easily able to reproduce this locally with AT-core+Sky+webform, however an example can be seen at www.squirreltest.com.au/content/webform-test. This site is a fresh D7 install, containing only adaptivetheme+Sky+webform.
Comments
Comment #0.0
petey318 commentedtext edit - added more explanation
Comment #1
Jeff Burnz commentedIts there because the original designer wanted to use it (which was not me), if I change this now I risk breaking a lot of sites that rely on it, so that's not really an option.
What I suggest is adding some CSS that only applies to the web form, e.g.
.webform-container-inline label {display: inline;}Something like that.
PS you get mega kudos for setting up a test site for me to view this, strait to the top of the class for you!
Comment #2
petey318 commentedThanks Jeff -
Yes, I ended up doing exactly that (the additional CSS) for the production site. It all works fine.
Cheers, Pete.
PS (for the benefit of others reading this in future) - the test site will probably vaporise in a couple of weeks time.
Comment #3
Jeff Burnz commentedGood stuff.
Comment #5
new123456789 commentedI have a webform.css file in my site and it consists of the followin:
However, the inline labels are not displayed inline. Why might this be?
Comment #6
new123456789 commentedComment #7
new123456789 commentedComment #8
quicksketch@new123456789: We don't answer custom coding questions in the Webform queue.
Comment #8.0
quicksketchchanged the example to my test server
Comment #9
Basavaraj PK commented