Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Created December 27, 2020 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanaf1979/f1107b152e21560ac47a529ce733c808 to your computer and use it in GitHub Desktop.
Save vanaf1979/f1107b152e21560ac47a529ce733c808 to your computer and use it in GitHub Desktop.
<!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