I have a <span> element which I want to display without any line break. How can I do that?
I have a <span> element which I want to display without any line break.
Share
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.
Put this in your CSS:
Get more information here: http://www.w3.org/wiki/CSS/Properties/white-space
white-spaceThe
white-spaceproperty declares how white space inside the element is handled.Values
normalThis value directs user agents to collapse sequences of white space, and break lines as necessary to fill line boxes.
preThis value prevents user agents from collapsing sequences of white space. Lines are only broken at newlines in the source, or at occurrences of “\A” in generated content.
nowrapThis value collapses white space as for ‘normal’, but suppresses line breaks within text.
pre-wrapThis value prevents user agents from collapsing sequences of white space. Lines are broken at newlines in the source, at occurrences of “\A” in generated content, and as necessary to fill line boxes.
pre-lineThis value directs user agents to collapse sequences of white space. Lines are broken at newlines in the source, at occurrences of “\A” in generated content, and as necessary to fill line boxes.
inheritTakes the same specified value as the property for the element’s parent.