Stop word-wrap in html
I don't want word wrap but this is being. I have set width more than text length but this is still breaking so how can I stop word break.
css
.menu{
float:left;
width:120px;
heigh开发者_运维问答t:34px;
padding:12px 6px 0 6px;
color:#cc8d50;
}
Try:
.menu{
white-space: nowrap;
...
Add that to your CSS.
In your css insert this:
white-space:nowrap;
精彩评论