Created
April 27, 2018 15:22
-
-
Save gunaevart/ce729d2688f98e74fff9dfa3a4f9f212 to your computer and use it in GitHub Desktop.
Использование ::after и ;;before
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="new">Див</div> | |
.new { | |
width:200px; | |
height:20px; | |
border:1px solid black; | |
padding:5px; | |
position: relative; | |
} | |
.new::before { | |
content: ""; | |
height:30px; | |
width:40px; | |
border:1px solid green; | |
background-color:green; | |
position:absolute; | |
right:-1px; | |
top:-1px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment