Technical fix: Isolate header from global CSS

Home › Forums › Gravida Support › Technical fix: Isolate header from global CSS

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #236065
    Kor van de BuntKor van de Bunt
    Participant
    • Topics: 149
    • Replies: 392
    • Total: 541
    Member since: June 3, 2015

    Hi Support Team,
    I am currently customizing the design of my website www.mlbeauty.nl to achieve a high-end boutique look. I am applying global CSS rules to headers (h1, h2, h3) and buttons to achieve a specific style (letter-spacing, uppercase, and centered alignment).

    The Issue:
    Every time I apply these global styles, the header layout and navigation menu break. The menu items and logo inherit the centered alignment and letter-spacing, which disrupts the original header structure.

    The Request:
    Could you please help me isolate the header? I would like the header (logo and navigation) to be “immune” to global heading styles or to have its own unique classes that prevent it from inheriting styles like text-align: center and letter-spacing.

    Specifically, I want to apply the following style to the rest of my site without it affecting the header:

    * h1, h2, h3 { font-weight: 400; text-transform: uppercase; letter-spacing: 4px; text-align: center; }

    Could you provide a CSS “reset” or specific selectors for my theme’s header that I can use to keep the menu layout intact while I restyle the page content?

    Thank you in advance for your assistance!

    #236080
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31745
    • Total: 31745
    Member since: August 16, 2013

    Hi,

    This is done.

    Regards,
    Dave

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.