website border - how?

Out of context: Reply #2

  • Started
  • Last post
  • 12 Responses
  • ideaist0

    I've done it like thus, but their are various ways:

    <div id="left"></div>
    <div id="right"></div>
    <div id="top"></div>
    <div id="bottom"></div>

    #left, #right, #top, #bottom { position: fixed; background-color: red; }
    #left, #right { height: 100%; width: 5px; top: 0; }
    #left { left: 0; }
    #right { right: 0; }
    #top, #bottom { width: 100%; height: 5px; left: 0; }
    #top { top: 0; }
    #bottom { bottom: 0; }

    • Oh sorry, I didn't see that the bottom border wasn't fixed...ideaist

View thread