• Hi,

    I’ve installed Tutor LMS on a website and the Tutor LMS stylesheet is using the universal CSS selector * to reset margin and padding.

    
    * {
      margin: 0;
      padding: 0;
    }
    

    This is breaking the website styles. I want to decide by myself if I want or need to keep paragraphs, headings, lists default margins and paddings. This is a real problem. If you want to reset margin and padding for Tutor LMS elements, please, apply this only on Tutor LMS containers, not for all the website.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @juliemoynat !

    The tutor LMS style will only enqueue on the tutor own pages, not on your other pages.
    If you want, You can override that CSS and also can change that.

    Thank you!

    Thread Starter Julie Moynat

    (@juliemoynat)

    In my case, the stylesheet is loaded on all pages. But, anyway, I need default styles on Tutor pages too for header, footer…

    Yes, I’ve overridden that CSS (everything was broken so I don’t have the choice) but that’s not normal: Tutor stylesheet should only apply for Tutor stuffs not for the rest of the website.

    In order to be safer for all websites, you could do like this:

    
    .tutor-wrap * {
      margin: 0;
      padding: 0;
    }
    

    What do you think?

    Hello @juliemoynat !

    I understand your issue, ?I am sorry to see you run into such an issue. You can remove that CSS and can add some CSS now.

    Then, still have the issue, you can contact our support through this address support at themeum dot com

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The universel selector is breaking styles by reseting margin and padding’ is closed to new replies.