Untuk membuat sebuah teks tampil rata kanan-kiri (justify) silakan gunakan property text-align, contoh:
div { text-align: justify; text-justify: newspaper }
<div style=”text-align: justify; text-justify: newspaper”>This is “Newspaper” justified content</div>
Contoh mode justify yang lain:
auto The browser will determine the appropriate justification algorithm to use
distribute Justification is handled similarly to the “newspaper” value, but this version is optimized for East Asian content (especially the Thai language.) In this justification method, the last line is not justified.
distribute-all-lines Behavior and intent for this value is the same as with the “distribute” value, but the last line is also justified.
inter-cluster Justifies content that does not have any inter-word spacing (such as with many East Asian languages.)
inter-ideograph Used for justifying blocks of ideographic content. Justification is achieved by increasing or decreasing spacing between ideographic characters and words as well.
inter-word Justification is achieved by increasing the spacing between words. It is the quickest method of justification and does not justify the last line of a content block.
newspaper Spacing between letters and words are increased or decreased as necessary. The IE reference says “it is the most sophisticated form of justification for Latin alphabets.”
Incoming search terms:
- Membuat tulisan rata kanan kiri di web
- rata kanan css
- coding css membuat tulisan dalam web rata kiri kanan
- membuat css wordpress teks justify
- css text rata kiri kanan
- sintaks php untuk tulisan rata kiri
- membuat tulisan rata kanan kiri dengan css
- css kanan
- tulisan ke kiri php
- rata kanan kiri css
Tulisan Menarik Lainnya
One Comment on “Belajar CSS: Membuat sebuah teks Rata Kanan-Kiri (Justify)”
You can track this conversation through its atom feed.
Langsung praktek, dan langsung berhasil. Matur suwun Pak.
Posted on March 15, 2012 at 6:46 pm.