Created
September 30, 2016 16:29
-
-
Save remainstheday/3cc33e128d1a01891f3eab91c4f3db80 to your computer and use it in GitHub Desktop.
Center html text with a bottom border
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
<div class="slogan"> | |
<h1>Developing Interactive User Interfaces</h1> | |
</div> |
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
.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