开发者

css: align justify, but text on left side

开发者 https://www.devze.com 2023-01-28 05:14 出处:网络
why doesn\'t justify work? Text stays left-aligned. <div cla开发者_运维技巧ss=\"menu\"> text text text

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

精彩评论

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