1. Trang chủ
  2. » Giáo Dục - Đào Tạo

HTML5 XP session 06 tủ tài liệu bách khoa

50 57 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 50
Dung lượng 7,76 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Ÿ Ÿ Ÿ Property Description text-decoration It is used for specifying the decoration of the text in an element.. text-indent It is used for specifying the indentation of first line o

Trang 1

Session: 6

Formatting Using Style

Sheets

Trang 3

Ÿ  

Ÿ  

Ÿ  

Property Description

text-decoration It is used for specifying the decoration of the text in an element

text-indent It is used for specifying the indentation of first line of text in an

element in length or %

Trang 4

Ÿ  

Ÿ  

Property Description

specific family name such as “Serif” or “Times New Roman”

or relative value

small-caps

Trang 5

Ÿ  

Ÿ  

Ÿ   Following

Trang 6

length It is used in specifying fixed indentation and the default value is 0.

% It is used to specify an indentation as a percentage of the width of the parent element which the selector

element is defined.

Descrip-on

none It is used in specifying that the text will be displayed with the same casing as written within the

element.

capitalize It is used in specifying that the first letter of each word will be capitalized.

Uppercase It is used in specifying only uppercase letters.

Lowercase It is used in specifying only lowercase letters.

Trang 7

Ÿ  

Trang 9

Ÿ  

Ÿ  

Ÿ  

element.

Trang 10

line-through It is used for displaying a line through the text.

Ÿ  

Trang 11

Ÿ  

Trang 14

Ÿ   tag.

Attribute Value Description

class classname It is used in specifying the text direction for the content in an

id id It is used in specifying a unique id for an element.

lang language_code It is used in specifying a language code for the content in an

element.

style style_definition It is used in specifying an inline style for an element.

xml:lang language_code It is used in specifying a language code for the content in an

element, in XHTML documents.

Trang 15

p {text-indent: 50px}

Trang 17

p {padding: 20px}

Trang 19

Ÿ  

Ø 

Ÿ  

Trang 20

Ÿ  

Ÿ  

Inline style

<p style=”margin: 20px”> Internal CSS

p {margin: 20px}

Trang 22

Ÿ  

Value Description

Dashed It is used for specifying a dashed border

Dotted It is used for specifying a dotted border

groove It is used for specifying a 3D grooved border

outset It is used for specifying a 3D outset border.

Trang 23

Ÿ  

Ÿ  

Trang 25

Ø 

Ÿ  

Ÿ  

Ÿ  

Trang 26

Ÿ  

Ÿ  

border-style: groove inset outset dashed;

   

Trang 27

Ÿ  

Trang 29

Ÿ  

Ÿ  

Descrip-on

border by using either the RGB or hexadecimal value, or the color name itself

transparent It is used for specifying that the border is

transparent

Trang 30

Ÿ  

Trang 32

Ÿ  

Ÿ   Ø 

Trang 33

Ÿ  

Ÿ  

border-color: Red Blue Green Yellow;

   

Trang 34

Ÿ  

Ÿ  

Ÿ  

Descrip-on

Trang 35

Ÿ  

Ÿ  

Descrip-on

medium It is used in specifying a medium border

length It is used in accepting an explicit value that specifies the

thickness of border

thick It is used for displaying a thick border.

thin It is used in specifying a thin border.

Trang 36

Ÿ  

Ÿ  

Trang 38

Ø 

Ÿ  

Ÿ  

Trang 39

Ÿ  

Ÿ  

border-width: thick thin thick thin;

   

Trang 40

Ÿ  

Trang 42

Ÿ  

Trang 45

Ÿ  

Trang 46

Ÿ  

border: solid thin #FF0000;

   

Ÿ  

Trang 47

Ÿ  

Ÿ  

Ÿ  

Descrip-on

Aligns the text to the left

Aligns the text to the right

Centers the text

Aligns text to both left and right margins by adding space between words (like in newspapers and magazines)

Specifies that the value of the text-align property should be inherited from the parent element

Trang 48

The text-align property applies only to block-level elements, such as paragraphs

Hence, text-align cannot change the alignment of a single word without changing the alignment of the entire line

For Western languages, which are read from left to right, the default value of align is left

text-The text aligns on the left margin and has a ragged right margin

Languages such as Hebrew and Arabic has default align to right since they are read from right to left

Trang 49

Ÿ  

Ÿ  

Ÿ  

Descrip-on

A normal line height This is default

A number that will be multiplied with the current font size to set the line height

A fixed line height in px, pt, cm, and so on

A line height in percent of the current font size

Specifies that the value of the line-height property should be inherited from the parent element

Ngày đăng: 08/11/2019, 10:10

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN