• Resolved antoineO

    (@antoineo)


    Hi,

    I do not understand. I have created a accordeon on this page (http://lapousse.fr/site-ecommerce) with this code :

    .panel-heading { /*  bloc titre > arrière-fond */
        background-color: #ffffff;
    }
    
    .panel-body {
        background-color: #ffffff;
        color: #444444;
    }
    
    .panel-heading .accordion-toggle {
        background: #444444;
    }
    .panel-heading .accordion-toggle h5 {
        color: #ffffff;
        font-size:32px;
        padding: 6px 0px 6px 0px;
    }
    
    .panel-heading .accordion-toggle.collapsed {
        background: #ffffff !important;
        border: 1px solid #444444 !important;
    }
    .panel-heading .accordion-toggle.collapsed h5 {
        color: #444444;
        font-size:32px;
        padding: 6px 0px 6px 0px;
    }
    
    .panel-heading .accordion-toggle:hover {
        background: #ffffff;
        border: 1px solid #444444 !important;
    }
    .panel-heading .accordion-toggle h5:hover {
        color: #444444;
    }
    
    .panel-heading .accordion-toggle.collapsed:hover {
        background: #444444 !important;
    }
    .panel-heading .accordion-toggle.collapsed h5:hover {
        color: #ffffff;
    }

    And I try to create the same class for the titles of my others pages (here : http://lapousse.fr/site-catalogue) :

    .paneltitle {
         border-radius: 5px;
         background: #444444;
         font-size: 32px;
         color: #ffffff !important;
         padding: 6px 6px 6px 0px;
         line-height: 36px;
    }

    But I do not success to add a margin-left between my background and my text. Padding or margin do not work :/

    Thanks for your help !

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m not sure I understand.. on this page: http://lapousse.fr/site-catalogue

    You have added inline styles? the padding is in the text on the page so that would override the css you add.

    Kadence Themes

    Thread Starter antoineO

    (@antoineo)

    Sorry for the misunderstanding.

    I would like to have the same aspect between my title /1/ “Inclus dans le pack” (here : http://lapousse.fr/site-catalogue) than the same title /2/ (here : http://lapousse.fr/site-ecommerce)

    But I do not understand, because I put the same css code for my titles /1/ and /2/. So, how can I do to have a title with a background and a margin-left between the background and the text please ?
    I tried margin-left but it also moves the background on the left

    Thanks very much

    Thread Starter antoineO

    (@antoineo)

    Sorry, it is my fault. I have a different code between my css and into my html page. So my css into “custom css” did not work because of that :/

    Sorry and thanks for your help !

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Accordeon > create same class’ is closed to new replies.