Skip to content

Instantly share code, notes, and snippets.

@remainstheday
Created September 30, 2016 16:29
Show Gist options
  • Save remainstheday/3cc33e128d1a01891f3eab91c4f3db80 to your computer and use it in GitHub Desktop.
Save remainstheday/3cc33e128d1a01891f3eab91c4f3db80 to your computer and use it in GitHub Desktop.
Center html text with a bottom border
<div class="slogan">
<h1>Developing Interactive User Interfaces</h1>
</div>
.slogan {
text-align: center;
}
.slogan h1 {
display: inline-block;
border-bottom: 6px solid;
padding-bottom: 5px;
margin: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment