• Resolved carnagelp

    (@carnagelp)


    I’ve been trying to apply custom CSS to redesign the form and have been using your guides to make quite decent progress.

    However, I’m facing quite a few issues which I don’t know why its happening because I’ve checked and rechecked the code so many times but can’t seem to fix the problem.

    Here are the issues:
    1) I’m unable to change the size of the fields or align it to the center of the form. I tried setting margin:auto; didn’t help. I tried various padding settings, it wouldn’t change no matter what values I put. The only thing that moves it is float:right; but that pushes it to the edge of the form and I’m not able to center it even with padding. It’s very strange because even changing font settings doesn’t work. But they’re all under the same bracket as float so its definitely not a mistake in writing class name.

    2) The “this field is required” message is aligned to the left side completely away from the field. No clue how to bring it to the right spot.

    3) I have set icons as background images in the input fields using background-image but they don’t appear.

    4) I’ve changed font and color of the Calculate button but its still showing the default

    5) I am unable to set the form labels to appear above the field in mobile responsive view. In fact, I’ve put in a bunch of code for modifying elements based on browser size but none of that is working.

    I have been at this for over 9 hours straight and have looked through all your FAQs and other code sites before coming to you here. What’s going wrong?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    The behavior of the form is responsive by default, displaying the label at the top of fields. But you are not using the correct layouts in the plugin. You have defined the fields’ structures with custom styles.

    The correct would be to select the “Right Aligned” option for the “Label Placement” attribute in the “Form Settings” tab (https://cff.dwbooster.com/images/documentation/form-settings-tab.png).

    About your other styles, if there are CSS rules that are not applied to the elements, defined them with the !important; modifier. For example:

    
    #fbuilder .cff-button-field input{background: red !important;}
    

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    I feel so stupid right now. Wasted so much time when all it took was that one setting change (facepalm!). Thanks a ton!

    The !important modifier also pretty solved most of my other issues. Except 2:

    1) Separator fields margin/padding settings aren’t working even if I use the modifier.
    2) Slider color opacity. I used the opacity:1 code and used !important but the slider still shows a light shade of the color I’ve set.

    Oh and how do I get rid of the blue vertical bar on the left side of the separators and the fieldset label? As well as that faint gray line on the left side of the fieldset area? They seem to be default inbuilt in the form template.

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    Please, let me know the styles you have defined.

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    SECTION BREAK code:

    .cp_cff_11 #fbuilder .fields.section_breaks
    { 
    		margin-top:20px !important; 
    		margin-bottom:20px !important;
    		background-color: transparent !important;
    		border: 0;
    		border-top: 1px solid #f0f0f0 !important;
    		height: 1px;
    		margin: 2rem auto;
    		text-align: center;
    		width: 80%;
    }
    .cp_cff_11 #fbuilder .fields.section_breaks>label{font-size:1.3em;font-weight:900;text-transform: none !important;border-bottom:1px solid #dcdcdc}
    	.cp_cff_11 #fbuilder .fields.section_breaks .section_break{border:0;}
    

    SLIDER CODE:

    #fbuilder .cff-slider-field .slider
    {
    background:#DADADA;
    border-radius: 10px !important;
    border:0 !important;
    height: 0.3em !important;
    }
    #fbuilder .cff-slider-field .ui-slider-handle
    {
    	background:#f0557b !important;
    	opacity:1 !important;
    	border:0 !important;
    	top: -0.35em !important;
    height: 1em !important;
    border-radius: 0.15em !important;
    width: 1em !important;
    }
    #fbuilder .cff-slider-field .ui-slider-range
    {
    background:#f0557b;
    border:0;
    height:5px;
    background-image: linear-gradient(to right,#f0557b,#f0557b)!important;
    }
    #fbuilder .cff-slider-field .dfield.slider-container
    {
    padding-left: 10px !important; 
    border-radius: 10px !important;
    padding-right: 0px !important;
    padding-top:5px !important;
    }
    #fbuilder .cff-slider-field .slider-caption
    {
        font-family: "Rajdhani","Roboto", "Arial", sans-serif !important;
    		font-size:20px;
    		font-weight: 700;
    		word-spacing: 1em;
    }
    

    IMPLEMENTATION ON THIS PAGE:
    https://www.fitgirls4life.com/testing-calculators/?nocache=1

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    The changes are applied, but you have installed a plugin for caching the website. So, I you should purge the website’s cache to see your styles in action:

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    I don’t think you quite got the issues I’m talking about. The screenshot above still shows the problems I’m trying to fix.

    1) The slider color is set to #f0557b. But the color seen above is a much lighter shade of that. Looks like opacity:35% or something. I’m trying to remove the opacity so the #f0557b color appears as is.

    2) The separator margin/padding above and below is lesser than what I’ve set it. Even if I add a higher value or add !important it’s still not changing.

    3) I had asked for how to remove those vertical blue lines on the left side of the separator (and also in the fieldset label). No idea how to do that.

    PS: I’m always checking the page with ?nocache=1 so it loads a non cached version

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    If you set nocache=1, your website generates a new cache with the parameter. So, you should purge the cache in the plugin that manages it.

    Responding to your questions:

    To hide the blue line, you can use the style definition:

    
    #fbuilder .fields.section_breaks{border:0 !important;}
    

    To modify the opacity in the disabled sliders, you should use the style definition:

    
    #fbuilder .ui-state-disabled{opacity:1 !important}
    

    The margin-top and bottom you have defined for the section break fields were 20px, and it is the margin applied on your website.

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    The section break margins don’t change even if I change the numbers set. For example, I have now set it to 30px for top and bottom but it looks exactly the same.

    Also, if you look carefully, you’ll see that the blank space between the element above the each section break is clearly smaller than the space below it; signifying different margins even though they’ve been set the same. This difference gets even bigger in mobile view. How do I make it uniform and actually change as per whatever setting I put in for margin-top and bottom?

    The blue line hiding and opacity disabling worked btw. Thanks for that!

    Thread Starter carnagelp

    (@carnagelp)

    Oh, and how do I remove this line: https://ibb.co/wgw8txs

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    The space above and below the line in the section breaks is not only controlled by the margin. The section breaks have applied 10px of padding, and the line is the border-top. So, you have ten additional pixels below the line. If you want to remove them, you should use:

    
    #fbuilder .section_breaks{padding:0 !important;}
    

    Note, you have an HTML content field below the section break. If you want to hide it, enter the hide class name through its attribute: “Add CSS Layout Keywords.”

    About the line at the left of the results, you have inserted them into a fieldset field. Please, use the style definition:

    
    #fbuilder fieldset{border:0 !important;}
    

    I’m sorry, but we cannot implement your project through the WordPress forum. If you need additional help customizing your form, you should request a custom coding service through our private website: Custom Coding Service.

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    Both of the above fixed the issues. Thanks again!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Trouble with CSS Customizations’ is closed to new replies.