How to I have the navbar adjust to be shorter on mobile? The height is interfering with hero image












0















www.firstcalluplinks.com



enter image description here



The nav bar and hero image are having resizing issues on mobile. The hero image and text overlay get cut off by the navbar. The height of the navbar is causing issue - Cannot get logo to resize the way I want to in accordance with the size of the screen. I used an AMP template and customized it.



CSS:



 .cid-r3y3K9GszO amp-sidebar.open:after{content: '';position: absolute;top: 0;left: 0;bottom: 0;right: 0;background-color: rgba(217, 217, 217, 10);}
.cid-r3y3K9GszO .open{transform: translateX(0%);display: block;}
.cid-r3y3K9GszO .builder-sidebar{background-color: #d9d9d9;position: relative;min-height: 100vh;z-index: 1030;padding: 1rem 2rem;max-width: 20rem;}
.cid-r3y3K9GszO .headerbar{display: flex;flex-direction: column;justify-content: center;padding: .5rem 1rem;min-height: 70px;align-items: center;background: rgba(217, 217, 217, 0.8);}
.cid-r3y3K9GszO .headerbar.sticky-nav{position: fixed;z-index: 1000;width: 100%;}
.cid-r3y3K9GszO button.sticky-but{position: fixed;}
.cid-r3y3K9GszO .brand{display: flex;align-items: center;align-self: flex-start;padding-right: 30px;}
.cid-r3y3K9GszO .brand p{margin: 0;padding: 0;}
.cid-r3y3K9GszO .brand-name{color: #ffffff;}
.cid-r3y3K9GszO .sidebar{padding: 1rem 0;margin: 0;}
.cid-r3y3K9GszO .sidebar > li{list-style: none;display: flex;flex-direction: column;}
.cid-r3y3K9GszO .sidebar a{display: block;text-decoration: none;margin-bottom: 10px;}
.cid-r3y3K9GszO .close-sidebar{width: 30px;height: 30px;position: relative;cursor: pointer;background-color: transparent;border: none;}
.cid-r3y3K9GszO .close-sidebar:focus{outline: 2px auto #1b4376;}
.cid-r3y3K9GszO .close-sidebar span{position: absolute;left: 0;width: 30px;height: 2px;border-right: 5px;top: 50%;background-color: #1b4376;}
.cid-r3y3K9GszO .close-sidebar span:nth-child(1){transform: rotate(45deg);}
.cid-r3y3K9GszO .close-sidebar span:nth-child(2){transform: rotate(-45deg);}@media (min-width: 992px){.cid-r3y3K9GszO .brand-name{min-width: 8rem;}
.cid-r3y3K9GszO .builder-sidebar{margin-left: auto;}
.cid-r3y3K9GszO .builder-sidebar .sidebar li{flex-direction: row;flex-wrap: wrap;}
.cid-r3y3K9GszO .builder-sidebar .sidebar li a{padding: .5rem;margin: 0;}
.cid-r3y3K9GszO .builder-overlay{display: none;}}
.cid-r3y3K9GszO .hamburger
{position: absolute;top: 25px;right: 20px;margin-left: auto;width: 5%;height: 5%;background: none;border: none;cursor: pointer;z-index: 1000;}@media (min-width: 768px)
{.cid-r3y3K9GszO .hamburger{top: calc(0.5rem + 55 * 0.5px - 10px);}}
.cid-r3y3K9GszO .hamburger:focus{outline: none;}
.cid-r3y3K9GszO .hamburger span{position: absolute;right: 0;width: 65px;height: 4px;border-right: 5px;background-color: #1b4376;}
.cid-r3y3K9GszO .hamburger span:nth-child(1){top: 0;transition: all .2s;}
.cid-r3y3K9GszO .hamburger span:nth-child(2){top: 13px;transition: all .15s;}
.cid-r3y3K9GszO .hamburger span:nth-child(3){top: 13px;transition: all .15s;}
.cid-r3y3K9GszO .hamburger span:nth-child(4){top: 26px;transition: all .2s;}
.cid-r3y3K9GszO amp-img{height: 115px;width: 215px;margin-right: 1rem;margin-left: 2rem;}@media (max-width: 215px;)
.cid-r3y3K9GszO amp-img{max-height: 115px;max-width: 215px;}}
.cid-r3y3K9GszO amp-img img{height: 100%;object-fit: relative;object-position: center;}









share|improve this question





























    0















    www.firstcalluplinks.com



    enter image description here



    The nav bar and hero image are having resizing issues on mobile. The hero image and text overlay get cut off by the navbar. The height of the navbar is causing issue - Cannot get logo to resize the way I want to in accordance with the size of the screen. I used an AMP template and customized it.



    CSS:



     .cid-r3y3K9GszO amp-sidebar.open:after{content: '';position: absolute;top: 0;left: 0;bottom: 0;right: 0;background-color: rgba(217, 217, 217, 10);}
    .cid-r3y3K9GszO .open{transform: translateX(0%);display: block;}
    .cid-r3y3K9GszO .builder-sidebar{background-color: #d9d9d9;position: relative;min-height: 100vh;z-index: 1030;padding: 1rem 2rem;max-width: 20rem;}
    .cid-r3y3K9GszO .headerbar{display: flex;flex-direction: column;justify-content: center;padding: .5rem 1rem;min-height: 70px;align-items: center;background: rgba(217, 217, 217, 0.8);}
    .cid-r3y3K9GszO .headerbar.sticky-nav{position: fixed;z-index: 1000;width: 100%;}
    .cid-r3y3K9GszO button.sticky-but{position: fixed;}
    .cid-r3y3K9GszO .brand{display: flex;align-items: center;align-self: flex-start;padding-right: 30px;}
    .cid-r3y3K9GszO .brand p{margin: 0;padding: 0;}
    .cid-r3y3K9GszO .brand-name{color: #ffffff;}
    .cid-r3y3K9GszO .sidebar{padding: 1rem 0;margin: 0;}
    .cid-r3y3K9GszO .sidebar > li{list-style: none;display: flex;flex-direction: column;}
    .cid-r3y3K9GszO .sidebar a{display: block;text-decoration: none;margin-bottom: 10px;}
    .cid-r3y3K9GszO .close-sidebar{width: 30px;height: 30px;position: relative;cursor: pointer;background-color: transparent;border: none;}
    .cid-r3y3K9GszO .close-sidebar:focus{outline: 2px auto #1b4376;}
    .cid-r3y3K9GszO .close-sidebar span{position: absolute;left: 0;width: 30px;height: 2px;border-right: 5px;top: 50%;background-color: #1b4376;}
    .cid-r3y3K9GszO .close-sidebar span:nth-child(1){transform: rotate(45deg);}
    .cid-r3y3K9GszO .close-sidebar span:nth-child(2){transform: rotate(-45deg);}@media (min-width: 992px){.cid-r3y3K9GszO .brand-name{min-width: 8rem;}
    .cid-r3y3K9GszO .builder-sidebar{margin-left: auto;}
    .cid-r3y3K9GszO .builder-sidebar .sidebar li{flex-direction: row;flex-wrap: wrap;}
    .cid-r3y3K9GszO .builder-sidebar .sidebar li a{padding: .5rem;margin: 0;}
    .cid-r3y3K9GszO .builder-overlay{display: none;}}
    .cid-r3y3K9GszO .hamburger
    {position: absolute;top: 25px;right: 20px;margin-left: auto;width: 5%;height: 5%;background: none;border: none;cursor: pointer;z-index: 1000;}@media (min-width: 768px)
    {.cid-r3y3K9GszO .hamburger{top: calc(0.5rem + 55 * 0.5px - 10px);}}
    .cid-r3y3K9GszO .hamburger:focus{outline: none;}
    .cid-r3y3K9GszO .hamburger span{position: absolute;right: 0;width: 65px;height: 4px;border-right: 5px;background-color: #1b4376;}
    .cid-r3y3K9GszO .hamburger span:nth-child(1){top: 0;transition: all .2s;}
    .cid-r3y3K9GszO .hamburger span:nth-child(2){top: 13px;transition: all .15s;}
    .cid-r3y3K9GszO .hamburger span:nth-child(3){top: 13px;transition: all .15s;}
    .cid-r3y3K9GszO .hamburger span:nth-child(4){top: 26px;transition: all .2s;}
    .cid-r3y3K9GszO amp-img{height: 115px;width: 215px;margin-right: 1rem;margin-left: 2rem;}@media (max-width: 215px;)
    .cid-r3y3K9GszO amp-img{max-height: 115px;max-width: 215px;}}
    .cid-r3y3K9GszO amp-img img{height: 100%;object-fit: relative;object-position: center;}









    share|improve this question



























      0












      0








      0








      www.firstcalluplinks.com



      enter image description here



      The nav bar and hero image are having resizing issues on mobile. The hero image and text overlay get cut off by the navbar. The height of the navbar is causing issue - Cannot get logo to resize the way I want to in accordance with the size of the screen. I used an AMP template and customized it.



      CSS:



       .cid-r3y3K9GszO amp-sidebar.open:after{content: '';position: absolute;top: 0;left: 0;bottom: 0;right: 0;background-color: rgba(217, 217, 217, 10);}
      .cid-r3y3K9GszO .open{transform: translateX(0%);display: block;}
      .cid-r3y3K9GszO .builder-sidebar{background-color: #d9d9d9;position: relative;min-height: 100vh;z-index: 1030;padding: 1rem 2rem;max-width: 20rem;}
      .cid-r3y3K9GszO .headerbar{display: flex;flex-direction: column;justify-content: center;padding: .5rem 1rem;min-height: 70px;align-items: center;background: rgba(217, 217, 217, 0.8);}
      .cid-r3y3K9GszO .headerbar.sticky-nav{position: fixed;z-index: 1000;width: 100%;}
      .cid-r3y3K9GszO button.sticky-but{position: fixed;}
      .cid-r3y3K9GszO .brand{display: flex;align-items: center;align-self: flex-start;padding-right: 30px;}
      .cid-r3y3K9GszO .brand p{margin: 0;padding: 0;}
      .cid-r3y3K9GszO .brand-name{color: #ffffff;}
      .cid-r3y3K9GszO .sidebar{padding: 1rem 0;margin: 0;}
      .cid-r3y3K9GszO .sidebar > li{list-style: none;display: flex;flex-direction: column;}
      .cid-r3y3K9GszO .sidebar a{display: block;text-decoration: none;margin-bottom: 10px;}
      .cid-r3y3K9GszO .close-sidebar{width: 30px;height: 30px;position: relative;cursor: pointer;background-color: transparent;border: none;}
      .cid-r3y3K9GszO .close-sidebar:focus{outline: 2px auto #1b4376;}
      .cid-r3y3K9GszO .close-sidebar span{position: absolute;left: 0;width: 30px;height: 2px;border-right: 5px;top: 50%;background-color: #1b4376;}
      .cid-r3y3K9GszO .close-sidebar span:nth-child(1){transform: rotate(45deg);}
      .cid-r3y3K9GszO .close-sidebar span:nth-child(2){transform: rotate(-45deg);}@media (min-width: 992px){.cid-r3y3K9GszO .brand-name{min-width: 8rem;}
      .cid-r3y3K9GszO .builder-sidebar{margin-left: auto;}
      .cid-r3y3K9GszO .builder-sidebar .sidebar li{flex-direction: row;flex-wrap: wrap;}
      .cid-r3y3K9GszO .builder-sidebar .sidebar li a{padding: .5rem;margin: 0;}
      .cid-r3y3K9GszO .builder-overlay{display: none;}}
      .cid-r3y3K9GszO .hamburger
      {position: absolute;top: 25px;right: 20px;margin-left: auto;width: 5%;height: 5%;background: none;border: none;cursor: pointer;z-index: 1000;}@media (min-width: 768px)
      {.cid-r3y3K9GszO .hamburger{top: calc(0.5rem + 55 * 0.5px - 10px);}}
      .cid-r3y3K9GszO .hamburger:focus{outline: none;}
      .cid-r3y3K9GszO .hamburger span{position: absolute;right: 0;width: 65px;height: 4px;border-right: 5px;background-color: #1b4376;}
      .cid-r3y3K9GszO .hamburger span:nth-child(1){top: 0;transition: all .2s;}
      .cid-r3y3K9GszO .hamburger span:nth-child(2){top: 13px;transition: all .15s;}
      .cid-r3y3K9GszO .hamburger span:nth-child(3){top: 13px;transition: all .15s;}
      .cid-r3y3K9GszO .hamburger span:nth-child(4){top: 26px;transition: all .2s;}
      .cid-r3y3K9GszO amp-img{height: 115px;width: 215px;margin-right: 1rem;margin-left: 2rem;}@media (max-width: 215px;)
      .cid-r3y3K9GszO amp-img{max-height: 115px;max-width: 215px;}}
      .cid-r3y3K9GszO amp-img img{height: 100%;object-fit: relative;object-position: center;}









      share|improve this question
















      www.firstcalluplinks.com



      enter image description here



      The nav bar and hero image are having resizing issues on mobile. The hero image and text overlay get cut off by the navbar. The height of the navbar is causing issue - Cannot get logo to resize the way I want to in accordance with the size of the screen. I used an AMP template and customized it.



      CSS:



       .cid-r3y3K9GszO amp-sidebar.open:after{content: '';position: absolute;top: 0;left: 0;bottom: 0;right: 0;background-color: rgba(217, 217, 217, 10);}
      .cid-r3y3K9GszO .open{transform: translateX(0%);display: block;}
      .cid-r3y3K9GszO .builder-sidebar{background-color: #d9d9d9;position: relative;min-height: 100vh;z-index: 1030;padding: 1rem 2rem;max-width: 20rem;}
      .cid-r3y3K9GszO .headerbar{display: flex;flex-direction: column;justify-content: center;padding: .5rem 1rem;min-height: 70px;align-items: center;background: rgba(217, 217, 217, 0.8);}
      .cid-r3y3K9GszO .headerbar.sticky-nav{position: fixed;z-index: 1000;width: 100%;}
      .cid-r3y3K9GszO button.sticky-but{position: fixed;}
      .cid-r3y3K9GszO .brand{display: flex;align-items: center;align-self: flex-start;padding-right: 30px;}
      .cid-r3y3K9GszO .brand p{margin: 0;padding: 0;}
      .cid-r3y3K9GszO .brand-name{color: #ffffff;}
      .cid-r3y3K9GszO .sidebar{padding: 1rem 0;margin: 0;}
      .cid-r3y3K9GszO .sidebar > li{list-style: none;display: flex;flex-direction: column;}
      .cid-r3y3K9GszO .sidebar a{display: block;text-decoration: none;margin-bottom: 10px;}
      .cid-r3y3K9GszO .close-sidebar{width: 30px;height: 30px;position: relative;cursor: pointer;background-color: transparent;border: none;}
      .cid-r3y3K9GszO .close-sidebar:focus{outline: 2px auto #1b4376;}
      .cid-r3y3K9GszO .close-sidebar span{position: absolute;left: 0;width: 30px;height: 2px;border-right: 5px;top: 50%;background-color: #1b4376;}
      .cid-r3y3K9GszO .close-sidebar span:nth-child(1){transform: rotate(45deg);}
      .cid-r3y3K9GszO .close-sidebar span:nth-child(2){transform: rotate(-45deg);}@media (min-width: 992px){.cid-r3y3K9GszO .brand-name{min-width: 8rem;}
      .cid-r3y3K9GszO .builder-sidebar{margin-left: auto;}
      .cid-r3y3K9GszO .builder-sidebar .sidebar li{flex-direction: row;flex-wrap: wrap;}
      .cid-r3y3K9GszO .builder-sidebar .sidebar li a{padding: .5rem;margin: 0;}
      .cid-r3y3K9GszO .builder-overlay{display: none;}}
      .cid-r3y3K9GszO .hamburger
      {position: absolute;top: 25px;right: 20px;margin-left: auto;width: 5%;height: 5%;background: none;border: none;cursor: pointer;z-index: 1000;}@media (min-width: 768px)
      {.cid-r3y3K9GszO .hamburger{top: calc(0.5rem + 55 * 0.5px - 10px);}}
      .cid-r3y3K9GszO .hamburger:focus{outline: none;}
      .cid-r3y3K9GszO .hamburger span{position: absolute;right: 0;width: 65px;height: 4px;border-right: 5px;background-color: #1b4376;}
      .cid-r3y3K9GszO .hamburger span:nth-child(1){top: 0;transition: all .2s;}
      .cid-r3y3K9GszO .hamburger span:nth-child(2){top: 13px;transition: all .15s;}
      .cid-r3y3K9GszO .hamburger span:nth-child(3){top: 13px;transition: all .15s;}
      .cid-r3y3K9GszO .hamburger span:nth-child(4){top: 26px;transition: all .2s;}
      .cid-r3y3K9GszO amp-img{height: 115px;width: 215px;margin-right: 1rem;margin-left: 2rem;}@media (max-width: 215px;)
      .cid-r3y3K9GszO amp-img{max-height: 115px;max-width: 215px;}}
      .cid-r3y3K9GszO amp-img img{height: 100%;object-fit: relative;object-position: center;}






      mobile navbar amp-html






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 '18 at 7:54









      Chris Aby Antony

      72539




      72539










      asked Nov 21 '18 at 17:04









      tmtaylotmtaylo

      11




      11
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53417204%2fhow-to-i-have-the-navbar-adjust-to-be-shorter-on-mobile-the-height-is-interferi%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53417204%2fhow-to-i-have-the-navbar-adjust-to-be-shorter-on-mobile-the-height-is-interferi%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents