Full width header with CSS?

Hello, is there any other code apart from these codes?
and apart from that GitHub - discourse/discourse-full-width-component: Make Discourse occupy the full browser width

.d-header,
.drop-down-visible .d-header {
  padding-top: 0px;

  .wrap {
    max-width: none;
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 0;
    width: 100%;
    padding: 0;
  }

}

That screenshot after full widht component

Help please how can i fix that ?
With full-width-component (I added the codes to the site one by one, but it didn’t work.)

Hi,

What do you mean by:

?

Did you properly install the full-width component? Did you try disabling other components to see if there’s anything interfering?

Hi @chapoi , thank you for your interest.
I deleted the component and used these codes.

.d-header>.wrap {
    margin-right: 15px;
    margin-left: 15px;
    max-width: none;
}

The codes are working as I want now. :pray:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.