Menu Hiding Under Top Bar

Dear Support Team,

I hope this email finds you well. I am reaching out to you regarding an issue that I am experiencing on a website that I have recently built for a client.

The client requested that I insert some buttons on the top of the page, and I used the Top Hook area to insert the buttons. However, I am now experiencing an issue where the menu on the website hides the logo and burger menu icon when you scroll back up to the top of the page.

I have tried various settings, such as the z-index, but none of them seem to fix the issue. I have tested the website, and you can find it at this URL: 67.43.11.138/yrb.ca. Please note that you will have to alter your hosts file to view it because it is not technically live yet.

I have also added some custom CSS code to the website to style the buttons and their container. Please find the CSS code below:

<style>

.button-container {

display: flex;

flex-direction: row;

justify-content: center;

position: relative;

z-index: 9999;

}

.button-container .button {

display: inline-block;

background-color: #dd9933;

border: none;

color: white;

padding: 20px 20px;

text-align: center;

text-decoration: none;

font-size: 21px;

font-weight: bold;

margin: 4px 2px;

cursor: pointer;

border-radius: 8px;

-webkit-transition-duration: 0.4s;

transition-duration: 0.4s;

text-transform: uppercase;

color: white;

}

.button-container .button:hover {

background-color: #b97722;

}


.button-container .button .button-icon {

display: inline-block;

font-size: 21px;

margin-right: 5px;

}

.button-container .button .button-text {

display: inline-block;

vertical-align: middle;

}


.navigation {

position: fixed;

top: 100px;

width: 100%;

margin-top: 50px;

}

</style>

<div class="navigation">

<!-- your navigation menu code here -->

</div>

<div class="button-container">

<a href="http://yrb.ca/report-a-problem" class="button">

<i class="fas fa-exclamation-triangle button-icon"></i>

<span class="button-text">Report a Problem</span>

</a>

<a href="http://yrb.ca/emergency-contact-numbers" class="button">

<i class="fas fa-phone-alt button-icon"></i>

<span class="button-text">Emergency Contacts</span>

</a>

</div>

I would greatly appreciate it if you could provide me with some guidance on how to fix this issue. Please let me know if you require any additional information from me to assist with the troubleshooting process.

Thank you for your help in this matter. I look forward to hearing from you soon.

Best regards,

Ian Fraser

Comments

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.