Iam wondering if it is a way to force overflow elements of an fixed container to be on the same line instead of going on a new line.
Thank you.
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, there’s a way.
You have to replace,
float: leftwithdisplay: inline-block, and addwhite-space: nowrapto the parent element:See: http://jsfiddle.net/vrSRE/4/
If you don’t want any space between the elements, the easiest way to fix this new problem is to remove the whitespace in the HTML, like this:
For other options that you probably don’t care about to remove the space, see:
And lastly, if you care about IE7 support, use this: