Skip to content

Instantly share code, notes, and snippets.

@gunaevart
Created April 27, 2018 15:22
Show Gist options
  • Save gunaevart/ce729d2688f98e74fff9dfa3a4f9f212 to your computer and use it in GitHub Desktop.
Save gunaevart/ce729d2688f98e74fff9dfa3a4f9f212 to your computer and use it in GitHub Desktop.
Использование ::after и ;;before
<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