CSS
1)text-align:- textni xolatini o’zgartiradi
center – textni o’rtaga surish
Right- o’nga
Left- chapga surish
2)ID- idenfikator,kalit so’z (xos, tanlab olingan) CSSda # bilan qo’llaniladi
font-size- o’lcham (matn)
font-family matn Shriftini ozgartirish
text-align:justify; matnni ikki yon bo’yicha tekkizlash
text-indent -abzas (xatboshidan) yozish
text-decoration matnni ostiga ustiga o’ziga chizish,
underline - matn ostiga chizish, overline-ustiga chizish. line-through;-matn ustiga(o’ziga),chizish
color gray- matinni (rangi)ahamiyatsiz qilish
none-hech qanday(yo’q)
text-transform: capitalize – matndagi hamma so’zni bosh harfini kattalashtirish
text-transform: uppercase - matndagi hamma xarflarni kattalashtirish
text-transform: lowercase – matndagi hamma xarflarni kichiklashtirish
text-decoration-style:dashed;- matn so’zlariga (ostiga) tortilgan chiziq holati (uzuq chiziq)
text-decoration-color: red;- (dashed) rangi umuman tortilgan chiziq rangi
text-decoration-line: underline; matnga tortilgan chiziq
font-weight: bold;-matnni qalinlik darajasi
font-style: italic;- shiriftni ko’rinish
color: blue! important;- muhimlikni ifodalaydi faqat shu qiymatni (albatta) oliadi
font-variant: small-caps-matnni kichik o’lchamdagi holatida bosh harflar bilan yozadi
letter-spacing: -4px; matndagi harflar orasidagi masofa
word-spacing:- 12px;- so’zlar orasidagi masofa
line-height: -16px(12,10 px siz yozsa ham bo’ladi);-matndagi qatorlar orasidagi masofa
text-shadow:- 3px 2px 4px blue;-matnni soyasini ifodalaydi va o’zida to’trta qiymatni qabul qiladi. bu yerda blue-soyani rangi 3px x - o’qi bo’yicha, 2px- y o’qi bo’yicha surishni, 4px-soyanoi chachib yuborishni bildiradi
img{ width: 300px;
margin-left: auto; -
margin-right: auto; -
display: block;}-rasm o’rtaga 300px da qo’yildi
float- suzish, surilish bloklarni birlashtirish, yani o’ng yoki chapga surish (left,right)
clear both- floatni (inkor) qilish, tozalash
Dostları ilə paylaş: |