styles don’t applies on classes

Home Forums Quform WordPress styles don’t applies on classes

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31336
    artsolving
    Participant

    Hi Ally,
    sorry I open a new topic cause the problem persist, with several CSS styles and id’s around the form
    so I prefer to explain as well the scenario cause seems conflict exist by setting rules:

    wanna show a text (option 1 set as default on radio element settings) with style as class1 but on live text get full width as 1 column container related. other option works well, the same if I remove default on option 1

    on div element :
    id=”some-id” class=”some-class”

    with CSS on element setting :
    font-family: “some-family”;
    color: “some-color”;
    font-size: “some-size”;

    CSS on general setting :
    .class1 {
    width: 600px;
    margin: auto;
    }

    .class2 {
    width: 800px;
    margin: auto;
    }

    .class3 {
    width: 1000px;
    margin: auto;
    }

    JS on general setting (radio element) :

    jQuery(function ($) {

    $(‘.quform-field-some_element’).on(‘change’, function () {

    if ($(‘.quform-field-some_element_1’).is(‘:checked’)) {
    $(‘#some-id’).addClass(‘class1’);
    } else {
    $(‘#some_id’).removeClass(‘class1’);

    and so on for other option…

    this code work on my codepen, on inspector classes are taken by id.

    tnx in advance

    #31355
    artsolving
    Participant

    hi,
    tnx issue resolved !

    regards

    #31382
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy