Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8264821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:35:35+00:00 2026-06-08T04:35:35+00:00

I have a navigation bar that I would like to keep at a fixed

  • 0

I have a navigation bar that I would like to keep at a fixed position (top), on my website. I would also like for the navigation bar to have some transparency. I applied the transparency to the navigation bar, which also makes any content (child elements) inside that div also inherit the transparency. So, to solve that I applied a relative position to the content inside of the navigation bar, but now the content that is supposed to appear fixed (inside the navigation bar) scrolls with the rest of the page content. How can I fix this?

fiddle

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:35:37+00:00Added an answer on June 8, 2026 at 4:35 am

    Don’t use opacity in this case, use RGBa for the background of the navigation bar background: rgba(0,0,0,.5); (and filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0F000000, endColorstr=#0F000000); for IE 8 and older). All children inherit the opacity value and there is nothing you can do to about it (except setting the parent’s opacity back to 1 again, in which case you won’t have semi-transparency on the parent anymore).

    Demo (changed back to original structure with navigation content inside navigation container and RGBa)

    Demo#2 (uses current structure and opacity, changed position for navigation content to fixed)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have a view (Hierarchy structure) under Navigation Controller (the top
My website has a navigation bar that when clicked targets an iframe. i would
I have a navigation bar that tells the user which page is selected by
I have a navigation bar that has two dropdowns (as nested ul's). I'm trying
I have a UINavigationBar based application - only a one navigation bar that is
I want to have a navigation bar with a settings button on it that
I have created a flexible navigation bar in my app that will show custom
I have a view MainView that has a navigation bar without any navigation controller,
I have a navigation bar and I need to always keep the current one
I have a tab bar application that contains navigation views in 2 of its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.