CSS HR Line
CSS HR Line
Out of context: Reply #10
- Started
- Last post
- 12 Responses
- dmay0
1px line, fixed 100px from the top, with a 35 pixel gap on the left and right:
CSS:
.lineContainer {
width: 100%;
height: 1px;
right: 35px;
position: fixed;
overflow: hidden;
top: 100px;
}
.line {
width: 100%;
height: 1px;
background-color: #000;
position: absolute;
left: 70px;
}HTML:
<div class="lineContainer">
<div class="line"></div>
</div>