website border - how?
- 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
- uan0
padding and background-color on body,
other background-color for content.
- vaxorcist0
using Chrome's "inspect element" I found....
body {
border: 20px solid #ED2B34;
}
- ETM0
No matter what route you choose, this is pretty much html 101 stuff.
- JG_LB0
thanks guys. it's been a while since i've attempted web
- dbloc0
if you want it to be fixed, do what ideaist said.
- JG_LB0
ahhh i got it!
- Xopher0
body {
border: 10px solid #333; }