Tagged: x
-
AuthorPosts
-
September 28, 2016 at 4:25 am #1193601
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantHi,
I have created a gravity form which I have put into a sidebar widget. I’ve done most of the styling for it but I just can’t get the padding even on both sides.
There’s nothing in my css to suggest that I’ve tweaked the padding or margin so it must be something to do with the sidebar.
I will post screenshots and the url in a private post but the styling for my form is as follows:
body #gform_wrapper_8 {background-color:#4aa9d3; padding:20px; border-radius:15px;}
body #gform_wrapper_8 .gform_body .gform_fields .gfield .gfield_label {display:none;}
body #gform_wrapper_8 .gform_body .gform_fields .gfield .ginput_container {padding-top:0px;
margin-top:-10px;}body #gform_wrapper_8 .gform_heading .gform_title {color: #fff; text-align:center; padding-bottom:10px;}
body #gform_wrapper_8 .gform_footer input[type=submit] {box-shadow:none;
text-transform:uppercase;
text-shadow:none;
border:1px solid #fff;
font-weight:600;
font-size:14px;
background-color:#f79020;
border-radius:20px;
width:100%;
padding:12px 25px 12px 25px;
margin-bottom:-10px;}body #gform_wrapper_8 .gform_footer input:hover[type=submit] {box-shadow:none;
text-transform:uppercase;
text-shadow:none;
border:1px solid #5d636a;
font-weight:600;
font-size:14px;
background-color:#5d636a;
border-radius:20px;
padding:12px 25px 12px 25px;}September 28, 2016 at 4:27 am #1193604
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantThis reply has been marked as private.September 28, 2016 at 5:13 am #1193646
ThaiModeratorHi There,
Please add the following CSS:
.gform_wrapper ul.gform_fields li.gfield { width: 100%; padding: 0 }Hope it helps 🙂
September 29, 2016 at 6:37 am #1195566
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantYes, that has rectified the issue. Thanks
September 29, 2016 at 6:56 am #1195592
Paul RModeratorYou’re welcome! 🙂
October 3, 2016 at 8:32 am #1200459
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantThis reply has been marked as private.October 3, 2016 at 8:58 am #1200493
ThaiModeratorHi There,
Please change the previous CSS to this:
.x-sidebar .gform_wrapper ul.gform_fields li.gfield { width: 100%; padding: 0 }Hope it helps 🙂
October 4, 2016 at 3:48 am #1201678
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantThis reply has been marked as private.October 4, 2016 at 5:24 am #1201758
ThaiModeratorHi There,
Please delete the previous CSS and add this CSS:
.gform_wrapper #gform_8 .gform_body { width: 100% !important; }Hope it helps 🙂
October 4, 2016 at 5:27 am #1201762
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantHi Thai,
It’s better. I think that’s the best I’m going to get.
Thanks
October 4, 2016 at 6:49 am #1201817
ChristianModeratorYou’re welcome. Glad we could help. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1193601 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
