Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!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