| Post |
|
Guest
| Travis 3:33 pm October 29, 2008
| |
|
|
- URL to the FORM: localhost
- cforms version: 9.1
- Your WordPress version: 2.6.3
Hey Oliver,
I'm having a bit of an issue with aplying form specific styling to the failure, waiting, and success divs, and was wondering if a special method is needed to modify these.
In short, using #cforms1form, #cforms2form, etc… with those three divs doesn't seem to work.
#cforms2form div.failure, #cforms2form div.waiting, #cforms2form div.success { position: absolute; right: 15px !important; top: 50px !important; }
…the form specific styling works like a charm for every other element I've modified in my cform theme, but just not those three divs.
Is there any reason why? :)
|
|
|
Admin
| Oliver Munich, Germany posts 6002 6:49 pm October 29, 2008
| |
|
|
It should work just fine, it did when I tested it on my local dev env. What does Firebug say…? Can change the div on the fly?
|
|
|
|
|
Guest
| Travis 10:15 pm October 29, 2008
| |
|
|
Firebug shows the css for div.failure, but not #cforms2form div.failure. I'm not sure why.
The source does show the proper id generated = <div id="usermessage2b" class="cf_info failure">Please fill in all the required fields.</div>
I'll take another stab at it by modifying an existing cforms theme, and see if that makes a difference. I'll update this thread later this evening.
Thanks, Oliver.
|
|
|
Guest
| Travis 4:19 pm October 30, 2008
| |
|
|
Had the chance to try applying the form specific css on a clean install of WordPress with a default theme, same thing. Just won't apply.
I don't think having it on my localhost makes a difference, but I can't think of anything else that would be causing this.
Just to confirm, Oliver, #cforms2form div.failure {} allowed you to apply special styling to a second form?
|
|
|
Admin
| Oliver Munich, Germany posts 6002 7:44 pm October 30, 2008
| |
|
|
Sorry, should have read more carefully.
You can change the DIV by addressing it individually with e.g. :
div#usermessage2a {}
However, you can't apply form 2 specific failure styling since .failureis not part of the form container… I'll make note of it for v9.2.
|
|
|
|
|
Guest
| Travis 8:29 pm October 31, 2008
| |
|
|
Ahhh, that makes sense. Thanks Oliver. I'll keep my eyes open for v9.2.
|
|
|
Guest
| sunshine 9:00 pm March 11, 2010
| |
|
|
Oliver said:
Sorry, should have read more carefully.
You can change the DIV by addressing it individually with e.g. :
div#usermessage2a {}
However, you can't apply form 2 specific failure styling since .failureis not part of the form container… I'll make note of it for v9.2.
Hi, was this change ever addressed? I just downloaded cforms about a week ago. Thanks.
|
|