div {
width: 500px;
height: 100px;
position: relative;
padding-top: 20px;
margin-top: 50px;
}
div::before {
content: '';
display: block;
position: absolute;
top: 0;
width: 50%;
left: 25%;
border-top: 1px solid red;
}
Code Example |
---|
Css :: style image so it crops |
Css :: text overflow |
Css :: center div scss |
Css :: css grid make all rows same height |
Css :: css clip text |
Css :: css main container align center |
Css :: center tecxt css |
Css :: word spacing css |
Css :: custom horizontal scrollbar css |
Css :: border radius 4 values |
Css :: scroll start from bottom css |
Css :: background image and position css |
Css :: set svg background color css |
Css :: rotate image css |
Css :: replace icon with image css |
Css :: import font css |
Css :: how to use the transition left in css |
Css :: css select element by role |
Css :: css vw scrollbar |
Css :: background image overlay |
Css :: width defined by content css |
Css :: line-height css |
Css :: griddy css |
Css :: scss variable to css variable |
Css :: gradient 3 colors |
Css :: ng-deep |
Css :: css style placeholder |
Css :: position absolute horizontally center |
Css :: media screen smartphone |
Css :: css outline width |