Solved

CSS problem large margin on right

Posted on 2015-02-11
4
87 Views
Last Modified: 2015-02-11
On just this page: http://mccrackenmotorfreight.com/getwpress/job-opportunities/
when you make the browser as skinny as it can go, a horizontal scroll shows and on the right you can see a big red gap. I've been trying for an hour and can't find the right css to fix this.
Can anyone give me hand with this please?
0
Comment
Question by:Dzynit
  • 2
4 Comments
 
LVL 38

Expert Comment

by:Tom Beck
ID: 40603793
Pretty simple really. You are using tables in your form. Tables are not responsive. That's one of the reasons they are rarely used in modern web development where responsiveness is desired.

As a test, add this definition:

.gform_body {
    overflow:hidden
}

There's also an anchor in a <li> somewhere in the markup that's not wrapping.
0
 
LVL 14

Author Comment

by:Dzynit
ID: 40603854
That css didn't make any difference. I added a min-width to the page id so at least the red stops showing. The form is from the gravity forms plugin, so we can't change it from being a table.

I'll leave this post open for a little bit in case anyone has any other suggestions on the horizontal scroll.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 40603871
There is no solution as long as you are using a plugin that is based on 20th century technology which can never be responsive.  So you have two options find an alternative to the gravity forms plugin or live with the fact that you are going to have nothing but trouble trying to do mobile, and nothing but ongoing maintenance issues for even full pages where the user chooses to use less than full width.

Cd&
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 40603876
The css was just something for you to add to demonstrate that it would make the problem go away temporarily. If it didn't do anything it was likely a specificity issue. For example, the following might actually do something.

#content #gform_wrapper_3 #gform_3 div.gform_body {
    overflow:hidden
}

Regardless, as long as Gravity Forms are using tables that have cell content wider than mobile device screens, they will not be responsive down to that level.

http://www.gravityhelp.com/forums/topic/responsive-forms
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WordPress Themes 10 34
Centering Vertically 3 28
WordPress link popping up result: NOT wanted 5 34
How to change pointer icon to hand icon on mouseover 2 19
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to count occurrences of each item in an array.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now