Created
December 9, 2018 07:10
-
-
Save zempo/ea608cae8de5bf432dab93bf1256681c to your computer and use it in GitHub Desktop.
::before and ::after drill created by zempo1 - https://repl.it/@zempo1/before-and-after-drill
This file contains 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
Empty file |
This file contains 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
main { | |
padding: 30px; | |
} | |
blockquote { | |
max-width: 300px; | |
position: relative; | |
} | |
blockquote:before{ | |
content:"\201C"; | |
left:0; | |
top:0; | |
} | |
blockquote:after { | |
content:"\201D"; | |
right:0; | |
bottom:0; | |
} | |
blockquote + .author { | |
margin-bottom: 60px; | |
} | |
.author { | |
color: grey; | |
} | |
.author::before { | |
content: "-"; | |
} | |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>::before and ::after drill</title> | |
<link href="index.css" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<main role="main"> | |
<blockquote>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Provident nihil repellendus obcaecati vero ab neque saepe eligendi dolorum sit eos quibusdam labore ullam animi sapiente quia itaque velit sed, asperiores?</blockquote> | |
<p class='author'>Boaty McBoatface</p> | |
<blockquote>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A possimus totam voluptatem, explicabo fugiat dolor, earum est eveniet repellat quo, voluptate eum similique. Iste harum ipsam iusto officia. Explicabo, et!</blockquote> | |
<p class='author'>Foo Manchu Bar</p> | |
</main> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment