<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sticky Navigation Not Working! in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Sticky-Navigation-Not-Working/m-p/774271#M33492</link>
    <description>&lt;P&gt;Can you link a page where you're having this issue please? It's much easier to diagnose and fix CSS when you can see and interact with it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 09:28:11 GMT</pubDate>
    <dc:creator>piersg</dc:creator>
    <dc:date>2023-03-27T09:28:11Z</dc:date>
    <item>
      <title>Sticky Navigation Not Working!</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Sticky-Navigation-Not-Working/m-p/774205#M33487</link>
      <description>&lt;P&gt;Hey guys, I'm trying to create a sticky navigation with a hello bar on top. I want the hello bar to be out of view once you scroll and keep the navigation menu to the top. I did top: -32px so that the hello bar can be out of view. I tried it out in the module preview and it works but once it is on an actual page, position:sticky doesn't work. Can someone please help? I've been stuck on this! Here is my HTML and CSS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTML:&lt;/P&gt;&lt;P&gt;&amp;lt;div class="nav-1"&amp;gt;&lt;BR /&gt;&amp;lt;div class="mission-control-login-div"&amp;gt;&lt;BR /&gt;&amp;lt;div class="hellobar"&amp;gt;&lt;BR /&gt;&amp;lt;section class="mission-control-login"&amp;gt;&lt;BR /&gt;&amp;lt;a href=""&amp;gt;&lt;BR /&gt;&amp;lt;img src='{{ module_asset_url("test.svg") }}' width="20px" alt=""/&amp;gt;Testing&lt;BR /&gt;&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/section&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div class="nav-2"&amp;gt;&lt;BR /&gt;&amp;lt;nav class="menu menu--desktop" aria-label="Main menu"&amp;gt;&lt;BR /&gt;&amp;lt;section&amp;gt;&lt;BR /&gt;&amp;lt;a href="/"&amp;gt;&lt;BR /&gt;&amp;lt;img src="{{ site_settings.logoSrc }}" alt="" width="150px"/&amp;gt;&lt;BR /&gt;&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/section&amp;gt;&lt;BR /&gt;&amp;lt;ul class="menu__wrapper no-list"&amp;gt;&lt;BR /&gt;{{ menu_items() }}&amp;lt;/ul&amp;gt;&lt;BR /&gt;&amp;lt;/nav&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CSS:&lt;/P&gt;&lt;P&gt;.nav-1 {&lt;BR /&gt;position: sticky;&lt;BR /&gt;left: 0;&lt;BR /&gt;top: -32px;&lt;BR /&gt;right: 0;&lt;BR /&gt;bottom: auto;&lt;BR /&gt;z-index: 999;&lt;BR /&gt;display: flex;&lt;BR /&gt;max-width: 100%;&lt;BR /&gt;margin-top: 0;&lt;BR /&gt;padding-top: 0;&lt;BR /&gt;flex-direction: column;&lt;BR /&gt;justify-content: space-between;&lt;BR /&gt;flex-wrap: nowrap;&lt;BR /&gt;align-items: center;&lt;BR /&gt;align-self: stretch;&lt;BR /&gt;order: 0;&lt;BR /&gt;flex: 0 auto;&lt;BR /&gt;border-bottom: 1px solid #efefef;&lt;BR /&gt;background-color: #fff;&lt;BR /&gt;box-shadow: 0 4px 3px 0 rgba(0,0,0,.05);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.mission-control-login-div {&lt;BR /&gt;width: 100%;&lt;BR /&gt;position: relative;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.nav-2 {&lt;BR /&gt;width: 100%;&lt;BR /&gt;position: relative;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 03:25:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Sticky-Navigation-Not-Working/m-p/774205#M33487</guid>
      <dc:creator>vorellana814</dc:creator>
      <dc:date>2023-03-27T03:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sticky Navigation Not Working!</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Sticky-Navigation-Not-Working/m-p/774271#M33492</link>
      <description>&lt;P&gt;Can you link a page where you're having this issue please? It's much easier to diagnose and fix CSS when you can see and interact with it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 09:28:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Sticky-Navigation-Not-Working/m-p/774271#M33492</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2023-03-27T09:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sticky Navigation Not Working!</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Sticky-Navigation-Not-Working/m-p/774352#M33498</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Use this following css it will be work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.nav-1 {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;position: fixed;&lt;BR /&gt;&amp;nbsp; top: 0;&lt;BR /&gt;&amp;nbsp; width: 100%;&lt;BR /&gt;&amp;nbsp; z-index: 9999;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 12:41:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Sticky-Navigation-Not-Working/m-p/774352#M33498</guid>
      <dc:creator>ankitparmar09</dc:creator>
      <dc:date>2023-03-27T12:41:32Z</dc:date>
    </item>
  </channel>
</rss>

