Contact Form 7
Align image with form (4 posts)

  1. chappie
    Posted 2 years ago #

    On a responsive, Bootstrap-compliant WP theme, I have been trying - unsuccessfully - to align an image to the left of the form and keep both the image and form together as the screen narrows.

    The image is a tall, skinny one - 100px wide and 600px high - and it looks fine at viewports above 1200px wide. But when I reduce the window width to invoke the theme's responsiveness, the form fields jump down, leaving the image in isolation.

    I've tried, with CSS, different form field widths and percentages but they always jump, even when there is plenty of space for them to stay aligned with the image. I've also tried putting the image and form in the same DIV but I couldn't change this behaviour.

    With no image, the fields adjust nicely in responsive mode and don't jump about.

    How can I force the form to stay attached to the image?

    Thanks for any help.


  2. buzztone
    Posted 2 years ago #

    Please include a a link to your Contact Form 7 form. If others here are able to understand your actual problem, they may be able and willing to offer a possible solution.

  3. chappie
    Posted 2 years ago #

    @buzztone - thanks but my site isn't online yet. But here's a screen grab of the problem.

    Only the first field label has stayed with the image - everything else has been pushed down below the image (which is deeper than it looks because I added depth to the image to ensure that it matched the depth of the form and to avoid wrapping - or so I hoped!)

    There is nothing else down there to push elements around - and I have even shortened the field widths in an attempt to fix this problem. Nothing I have done so far succeeds in keeping the form fields alongside the image.

  4. buzztone
    Posted 2 years ago #

    @chappie - need link so can look at your form with Firebug or Chrome Dev Tools to diagnose problem. If no link you will have to do this yourself.

    Use Firebug or Chrome Dev Tools to examine the HTML and CSS of your CF7 form in detail. Once you understand how the HTML and CSS is configured in your CF7 form, you should be able to see the CSS changes you need to change the appearance of the form to suit your requirements.

    You can learn about these extremely useful developer tools at the following links:

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic