开发者

css: align justify, but text on left side

why doesn't justify work? Text stays left-aligned.

<div cla开发者_运维技巧ss="menu">
    text text text
</div>
.menu{
     width: 150px;
     background-color: #c1c1c1;
     color: #000;
     text-align: justify;   
}

Live sample: http://jsfiddle.net/FUkpR/


text-align: justify doesn't justify the last line of a text block/paragraph.

Example with longer text: http://jsfiddle.net/FUkpR/1/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜