Tɛks
Dokumɛnt ɛn ɛgzampul fɔ kɔmɔn tɛks yutiliti fɔ kɔntrol alaynɛshɔn, rap, wet, ɛn ɔda tin dɛn.
Teks alaynɛshɔn
I izi fɔ rialayn tɛks to kɔmpɔnɛnt dɛn wit tɛks alaynɛshɔn klas dɛn.
Ambitioni dedisse fɔ rayt fɔ yuz fɔ rayt. Kras matis iudicium purus sidon amet fεmεnt. Donec sed odio operae, yu vulputate felis rכnkɔs. Praeterea iter est kwasdam res kwas ex komyun. Na nos hinc posthac, sitientis piros Afros. Petierunt uti sibi konsiliɔm totiɔs Galia in diem sɛrtam indisɛri. Kras matis iudicium purus sidon amet fεmεnt.
Fɔ lɛft, rayt, ɛn sɛnta alaynɛshɔn, rispɔnsiv klas dɛn de we de yuz di sem viupɔt wid brekpɔynt dɛn we di grid sistem de yuz.
Left alaynɛt tɛks pan ɔl di sayz dɛn fɔ di viupɔt.
Sɛntral alaynɛd tɛks pan ɔl di sayz dɛn fɔ di viupɔt.
Rayt alaynɛt tɛks pan ɔl di sayz dɛn fɔ di viupɔt.
Left alaynɛt tɛks pan viupɔt dɛn we gɛt saiz SM (smɔl) ɔ we big pas dat.
Left alayned tɛks pan viupɔt dɛn we gɛt saiz MD (midul) ɔ we big pas dat.
Left alaynɛt tɛks pan viupɔt dɛn we gɛt LG (big) ɔ we big pas dat.
Left alayned tɛks pan viupɔt dɛn we gɛt sayz XL (ɛkstra-big) ɔ we big pas dat.
Tekst wrap ɛn ɔvaflɔ
Rap tɛks wit wan .text-wrap
klas.
Nɔ mek tɛks nɔ rap wit wan .text-nowrap
klas.
Fɔ mek yu gɛt lɔng kɔntinyu, yu kin ad wan .text-truncate
klas fɔ kɔt di tɛks wit ɛlipsis. I nid fɔ gɛt display: inline-block
ɔ display: block
.
Wod brek
Prɛvent lɔng string dɛn fɔ tɛks fɔ brok yu kɔmpɔnɛnt dɛn layout bay we yu yuz .text-break
fɔ sɛt overflow-wrap: break-word
(ɛn word-break: break-word
fɔ IE & Edge kɔmpitibliti).
Mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Tekst transfɔm
Transfɔm tɛks insay kɔmpɔnɛnt dɛn wit tɛks kapitaylayz klas dɛn.
Tekst we gɛt smɔl smɔl lɛta dɛn.
Di tɛks we gɛt big big lɛta dɛn.
Tekst we dɛn dɔn Kapitaliz.
Notis aw i .text-capitalize
jɔs de chenj di fɔs lɛta fɔ ɛni wɔd, ɛn lɛf di kes fɔ ɛni ɔda lɛta nɔ afɛkt.
Fɔnt wet ɛn italiks
Chenj di wet (boldnɛs) fɔ di tɛks kwik kwik wan ɔ rayt di tɛks italiks.
Tekst we gɛt bold.
Bolder weit tɛks (rilaytiv to di mama ɛn papa ɛlimɛnt).
Nɔmal wet tɛks.
Layt wet tɛks.
Layt wet tɛks (rilaytiv to di mama ɛn papa ɛlimɛnt).
Tekst we dɛn rayt wit italik.
Monospɛs
Chenj wan sɛlɛkshɔn to wi monospace font stak wit .text-monospace
.
Dis na insay wan ples
Riset di kɔlɔ
Riset wan tɛks ɔ link in kɔlɔ wit .text-reset
, so dat i go gɛt di kɔlɔ frɔm in mama ɔ papa.
Tekst we dɛn dɔn muv wit wan link we de riset .
Teks dɛkɔreshɔn
Rimov wan tɛks dɛkɔreshɔn wit wan .text-decoration-none
klas.