The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS trying to get my header under my border

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #193737

    little help please. i have a website going up at and am trying to get the header to go beneath the body border. I have already tried z-index: -1 but that places the header and nav buttons behind everything. i also tried margin-right on the header to margin: 21px;

    but that has no effect though it does work on the right and top margins. Your genius here would be very appreciated. thank you in advance.


    That’s a really strange way of doing it…

    • Instead of a border, give your body the background-color of your border
    • Add a container for everything with margin around all sides for the same effect, give it position: relative
    • Place everything inside this container including your header and you should be set
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.