How can I improve the look of my sticky header code?

Topic summary

A user is implementing a sticky header for mobile devices but encountering visual issues with their CSS code.

Initial Problem:

  • The sticky header implementation causes layout problems, with content appearing incorrectly positioned.

Solution Provided:

  • A helper suggests updated CSS targeting screens max-width 749px, adding position: fixed, proper z-index, width 100%, and margin-top of 83px to .mobile-header-area.d-xl-none and .col-12 elements.

Follow-up Issues:

  • After applying the fix, breadcrumb area positioning becomes problematic.
  • Additional CSS is provided to add padding-top: 83px to the breadcrumb area class.
  • A new issue emerges where text scrolls underneath the fixed header instead of being hidden, creating visual overlap.

Current Status:
The discussion remains ongoing with the latest scrolling/overlap issue unresolved. Multiple code snippets and screenshots have been shared to illustrate each problem.

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

i use this code to make header sticky but it looks so bad

88888888888888888888888888888888888888888888888

@media only screen and (max-width: 600px) { .mobile-header-area.d-xl-none { position: fixed !important; z-index: 2 !important; } .col-12 { margin-top: 83px !important; } }

88888888888888888888888888888888888888888888888888

originally it look like this but its not sticky

1 Like

Hi @DandSmart

Oh, i thought this problem already solve. Check this one.

@media only screen and (max-width: 749px) {
.mobile-header-area.d-xl-none {
position: fixed !important;
z-index: 2 !important;
width: 100% !important;
}
.col-12 {
margin-top: 83px !important;
}
}

And Save.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

it worked but other issue occured
orignal is This

1 Like

Add this code.

@media only screen and (max-width: 749px) {   
.ltn__breadcrumb-area.ltn__breadcrumb-area-2.ltn__breadcrumb-color-white.plr--9.breadcrumbs.overlay-bg {
    padding-top: 83px !important; 
}
 }

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

when i scrawl theses word also scrawl and shows on header check it out