Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

CSS Header...

Status
Not open for further replies.
Something like this should work:

#TopBar {
width: 100%; < change this to whatever value you need
height: 20px; < change this to whatever value you need
position: fixed;
top: 0;
}

Google "position: fixed;" for some examples.

-Ben
 
Optionally you could also put a padding on the wrapper div or body to move the page down by the height of the fixed div to make the header flush with the bottom of the fixed div

#topBar {
width:100%;
height: 3em;
}
BODY {
padding-top: 3em
}
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.
      Helmuts @ HelmutsHelmuts is verified member.: Good morning all
      Top Bottom