When I place a dt and his dd element in one line:
display: inline-block;
margin: 0px;
There will still be a little margin between those two.
A solution I’ve found is:
margin-left: -4px;
But isn’t there a better way to solve it?
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.
Yes, the space is caused because an inline-block is part of the inline flow, which means any line break will cause a space. There are several solutions:
font-size: 0on some common parent.Here’s a good article on the subject.