In the following HTML/CSS example
we can notice a leading space with size proportional to font’s size. How can I remove this effect in order to have different sized texts in different div elements aligned ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a small amount of white space around each glyph, this is intentional so that the letters don’t overlap. You can see this by selecting one letter.
To solve your problem, introduce a small negative
text-indent.Demo