MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/css_irl/comments/13c82x4/sign_marginright_1em/
r/css_irl • u/ro_ok • May 08 '23
5 comments sorted by
•
Congratulations! Your title contains valid CSS!
I'm a bot who validates your titles. author about summon source
6
Would it be padding though?
2 u/ro_ok May 09 '23 Could be either, depends if you like to define it with respect to the text or the bounding element.For HTML like:<div class="sign"> <div class="name">Canton Manor</div> </div>This:.sign { margin-right: 1em; }and this:.name { padding-right: 1em; }Should be basically equivalent as far as alignment of the internal text is concerned, to the best of my knowledge. 1 u/harelsusername May 09 '23 More like the other way around. 1 u/ro_ok May 09 '23 You’re right! How about that
2
Could be either, depends if you like to define it with respect to the text or the bounding element.
For HTML like:
<div class="sign"> <div class="name">Canton Manor</div> </div>
This:
.sign { margin-right: 1em; }
and this:
.name { padding-right: 1em; }
Should be basically equivalent as far as alignment of the internal text is concerned, to the best of my knowledge.
1 u/harelsusername May 09 '23 More like the other way around. 1 u/ro_ok May 09 '23 You’re right! How about that
1
More like the other way around.
1 u/ro_ok May 09 '23 You’re right! How about that
You’re right! How about that
•
u/css_irl_bot #bot May 08 '23
Congratulations! Your title contains valid CSS!
I'm a bot who validates your titles. author about summon source
6
u/cmaciver May 09 '23
Would it be padding though?