Created
January 16, 2014 07:58
-
-
Save ituki/8451272 to your computer and use it in GitHub Desktop.
indentをCSSできっちり合わせる ref: http://qiita.com/ituki_b/items/1c36a68fa0bc6e01b2a2
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
<p class="indent"><span>(※)</span>インデントを指定したい<br> | |
あたり</p> |
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
p.indent { | |
padding-left: 3em; | |
/padding-left: 2em; | |
text-indent: -3em; | |
} | |
p.indent span { | |
display: inline-block; | |
/display: inline; | |
width: 3em; | |
text-indent: 0; | |
/text-indent: -2em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment