8
Single div CSS Loki the raccoon
source link: https://codepen.io/lynnandtonic/pen/PoKWqYv
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
0 unsaved changes
xxxxxxxxxx
<div id="critter"></div>
CSS (Stylus)
CSS (Stylus)
// #divtober 22: Critter
// a.singlediv.com/divtober2021
black(alpha)
rgba(0,0,0,alpha)
white(alpha)
rgba(255,255,255,alpha)
body
min-height: 250px
height: 100vh
position: relative
background-color: white
div
position: absolute
left: 50%
top: 50%
&:before,
&:after
display: block
content: ''
xxxxxxxxxx
// @lynnandtonic
// a.singlediv.com
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK