Lepus
Lepus

Reputation: 587

justified text in anchor tag of list element

Short Question… How can i justify the text in an anchor tag? JsFiDDLE

HTML

<li>
    <a>
        Text
    </a>
</li>

CSS

li {width:200px;text-align:justify;}
span {text-align:justify;}

Upvotes: 0

Views: 331

Answers (1)

Stickers
Stickers

Reputation: 78686

You need to have enough amount of text to see it. Updated http://jsfiddle.net/h6nye95o/1/

Otherwise, You might be interested in using word-spacing and letter-spacing to create some gaps in between the words/letters.

Upvotes: 2

Related Questions