I want the margin change to only apply to desktop and not mobile.

This topic has 2 replies, 2 voices, and was last updated 1 years, 6 months ago ago by Rose Tyler

  • Avatar: Catholicans
    Catholicans
    Participant
    April 27, 2023 at 10:57

    Whenever I modify the margin for the main header on desktop, it also affects the mobile margin. However, I want the margin change to only apply to desktop and not mobile to decrease the height of the header. Is there a way to make this happen?
    Screenshot: https://snipboard.io/MPwrXm.jpg

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 27, 2023 at 12:30

    Hello, Catholicans,

    Thank you for getting in touch with us.

    Mentioned settings work for all devices.

    You can use the next custom CSS code in Theme options > Theme Custom CSS > Desktop:

    .header-top .et-container {
        margin-top: -25px;
    }

    We hope this information is helpful.

    Kind Regards,
    8theme team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.