0

I want to change max-width, but it is not overriding in custom-theme. how can i change

Here is the css style .

@media (min-width: 768px), print
.navigation, .breadcrumbs, .page-header .header.panel, .header.content, .footer.content, .page-wrapper > .widget, .page-wrapper > .page-bottom, .block.category.event, .top-container, .page-main {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px; 
    padding-left: 20px;
    padding-right: 20px;
    width: auto;
}
1
  • Is that a custom css file? If that's it you should declare this piece of css code after the "Not media" one Commented Jan 13, 2021 at 23:21

1 Answer 1

0

You need to override layout max-width. Main layout file is:
lib/web/css/source/lib/variables/_layout.less
You can overide below value at your theme path:
app/design/frontend/Vendor/theme/web/css/source/_theme.less

@layout__max-width: 1720px;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.