Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/14/2023 in all areas

  1. Take a look at this: https://uselessdivs.com/blog/a-short-guide-to-help-you-pick-the-correct-html-tag/ I haven't read through the full article, but the image toward the top is correct and could be helpful.
    1 point
  2. padding-top: 250px; Try that on your .nav_div
    1 point
  3. Also, you're opening a <nav> element but closing it as a <main> element, so the structure is broken from the get-go.
    1 point
  4. position: fixed Setting the position to fixed takes the element out of the normal document flow. That means it does not actually take up space, and instead acts as a separate floating layer. Since it doesn't take up space, your nav bar then becomes the "first" thing in the document, thus showing at the top below your top bar "layer". What you need to do then, is create some space where your top bar should be, such as by giving your body element a top margin (or maybe padding) the same height as your top bar.
    1 point
  5. Can you throw something up in a JSFiddle so we can see it in action?
    1 point
This leaderboard is set to New York/GMT-05:00
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.