I'm getting a 404 error when attempting to view the site mate.
From memory, Contact Form 7 allows you to go into the settings and insert custom markup. So you would just need to wrap the inputs in two divs and then style them into columns using CSS.
404's eh? that's strange. the URL is working for me. hmmm... I will play around with you idea, though it may be somewhat over my head. the CSS side of the plugin makes total sense to me, but the PHP side is a bit messy.
You shouldn't have to touch the PHP side of it at all. In the WordPress admin, go to the contact form's settings, remove the default line breaks that are present, and then make sure to override the 100% width of the inputs in your CSS.
With all that being said, forms following your current setup are actually better for readability. Our eyes can naturally scroll down the form without having to also scan left and right.
*and I totally agree with you about reading downwards and not across. But on smaller screens (like my 13" mac book pro) the top of the contact form gets cut off in the popup.
I can't see the whole code you posted, you should be embedding it into code tags. Anyway that's the idea, you put the table tags directly into CF7 textarea defining your form. You can put there ids and classes aswell, for styling.
Thanks Kermet. Yeah, I just fixed the code tags a few seconds ago. Sorry about that. Your table structure might be the way to go. I'll try it out a see if I need some CSS guidance.
What would rookies do without all you amazing coders. That did the trick 99%. I am still getting a border on the bottom of my form it looks like though.
No biggie, but if you have any ideas, I'm all ears.
Amazing. Thank you so much! Is there any way to add specific tablet code to CSS? When I view the contact form on my iPad, the Message text area is too wide and gets cut off on the right side.
Short answer: you can with something like @media (max-width:500px) { … }, adjust the pixel width for your needs. This doesn't target exactly the iPad, but it targets screens resolutions.
I know this thread is a bit old, but I can't find an open thread answering the question I have. I'm hoping someone here can help. We have a few two column contact forms (via CF7) on our site. They look good on the desktop, but it causes text areas to be off the screen on mobile devices. Is there anyway to fix this? The link @kermet provided is way out of my league.
I am using Contact Form 7 on a WP site and I want the contact form to have a two columned appearance.
IE:
Normal:
Name
Email
Subject
Message
Submit
I want:
Name Message Text Area
Email Message Text Area
Subject Message Text Area
Submit
Check out www.CloudPressed.com and click the Contact Us link and you'll see what I mean.
Thanks in advance for anyone's help.
From memory, Contact Form 7 allows you to go into the settings and insert custom markup. So you would just need to wrap the inputs in two divs and then style them into columns using CSS.
You shouldn't have to touch the PHP side of it at all. In the WordPress admin, go to the contact form's settings, remove the default line breaks that are present, and then make sure to override the 100% width of the inputs in your CSS.
With all that being said, forms following your current setup are actually better for readability. Our eyes can naturally scroll down the form without having to also scan left and right.
I usually embed everything into this kind of structrure:
Not the best looking solution, but it works.
*and I totally agree with you about reading downwards and not across. But on smaller screens (like my 13" mac book pro) the top of the contact form gets cut off in the popup.
Thanks again for the help
Anyway that's the idea, you put the table tags directly into CF7 textarea defining your form.
You can put there ids and classes aswell, for styling.
So, I have made great progress. It's very close. However, there are two outstanding things that are bothering me.
1. the elusive 1px border around my whole form
2. the extra padding above the 1st column (name, email etc...)
Any chance you two have any advice? I tried isolating some stuff with Firebug, but to avail.
Again, just go to www.CloudPressed.com and click Contact Us
Thanks again!!!
The border around is because you have this in your code:
Make sure the border is set to 0 and it should disappear (if you want to keep borders around other tables, add this to your CSS:
Then to get rid of the top padding in the left column, also add this:
What would rookies do without all you amazing coders. That did the trick 99%. I am still getting a border on the bottom of my form it looks like though.
No biggie, but if you have any ideas, I'm all ears.
Is there any way to add specific tablet code to CSS? When I view the contact form on my iPad, the Message text area is too wide and gets cut off on the right side.
http://www.w3.org/TR/css3-mediaqueries/
Short answer: you can with something like @media (max-width:500px) { … }, adjust the pixel width for your needs.
This doesn't target exactly the iPad, but it targets screens resolutions.
That's what I have and it doesn't seem to be having any effect. Something small I am missing?
Thanks again!
I know this thread is a bit old, but I can't find an open thread answering the question I have. I'm hoping someone here can help. We have a few two column contact forms (via CF7) on our site. They look good on the desktop, but it causes text areas to be off the screen on mobile devices. Is there anyway to fix this? The link @kermet provided is way out of my league.
www.creeksidebiblechurch.org
Oops,
www.creeksidebiblechurch.org/serve