admin管理员组

文章数量:1200755

I've created an sticky navbar:

    <div class="navbar bg-base-100 sticky top-0">

My content section under navbar code is:

    <div
      class="hero min-h-screen"
      style="background-image: url(.webp);">
      ...
    </div>

My nav is sticked correctly, but my hero section (since is min-h-screen) is showing an scroll. I mean, I need that my hero section height fits on (h-screen - navbar height).

I mean, I'd like to remobe scroll effect.

Any ideas?

本文标签: tailwind cssHow remove scrolling on sticky navbar with hero sectionStack Overflow