Created
December 27, 2020 11:24
-
-
Save vanaf1979/f1107b152e21560ac47a529ce733c808 to your computer and use it in GitHub Desktop.
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, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Align bullets with text</title> | |
</head> | |
<body> | |
<div class="text"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p> | |
<ul> | |
<li>Lorem ipsum dolor sit.</li> | |
<li>Fugit provident sequi sunt!</li> | |
<li>Molestiae nostrum repudiandae voluptatum.</li> | |
</ul> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p> | |
</div> | |
<style> | |
body { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
min-height: 100vh; | |
padding: 0; | |
} | |
.text { | |
max-width: 50%; | |
} | |
ul { | |
padding: 0; | |
list-style-position: inside; | |
} | |
</style> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment