1. Trang chủ
  2. » Tất cả

Html css review 02 css

38 1 0
Tài liệu đã được kiểm tra trùng lặp

Đ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

Tiêu đề Html Css Review 02 Css
Trường học Sample University
Chuyên ngành Web Development
Thể loại Essay
Năm xuất bản 2023
Thành phố Sample City
Định dạng
Số trang 38
Dung lượng 4,57 MB

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

Nội dung

written in the Cascading Style Sheets CSS language.. Types of Style Sheets... @import urlurl; Ex: @import urlcompany.css; @import urlsupport.css;... Exploring Style Rules3.1.. Setting th

Trang 1

CSS

Review

Trang 2

Content

Trang 3

1 Introducing CSS

how it should be displayed

written in the Cascading Style Sheets (CSS) language

Web Consortium (W3C) that defines the standards for HTML

CSS Version 3

Trang 4

2 Types of Style Sheets

Trang 5

External Styles

website

<link href=" url " rel=" stylesheet " type=" text/css " media=" device " />

@import url(url);

Ex: @import url(company.css);

@import url(support.css);

Trang 6

Embedded Styles

only apply to the HTML document in which they are created and are not accessible to other documents in the website

Trang 7

Inline Styles

HTML file

<element style="property1: value1; property2: value2;">

Trang 8

3 Exploring Style Rules

3.1 Style Rules

3.2 Browser Extensions

3.3 Style Specificity & Precedence

Trang 9

3.1 Style Rules

Trang 10

3.2 Browser Extensions

Trang 11

3.3 Style Specificity & Precedence

Style Precedence

body { color : black;}

header { color : red;}

header { color : blue;}

Defining Important Styles

property: value !important;

Ex: h1 { color : orange !important ;}

Trang 12

4 Style Comments

Trang 13

< span style=" color : red ">Red color</ span >

< span style=" color : #f00 ">Red color</ span >

< span style=" color : rgb ( 255 , 0 , 0 ) ">Red color</ span >

< span style=" color : hsl ( 0 , 100% , 50% ) ">Red color</ span >

< span style=" color : rgba ( 255 , 0 , 0 , 0.5 ) "> Semi-Opaque red</ span >

< span style=" color : hsla ( 0 , 100% , 50% , 0.5 ) "> Semi-Opaque red</ span >

5 Colors

Trang 14

6 Selector Patterns

6.1 Contextual Selectors

6.2 Attribute Selectors

Trang 15

6.1 Contextual Selectors

Trang 16

Contextual selector patterns

Trang 17

6.2 Attribute Selectors

Trang 18

7 Texts & Fonts

7.1 Font Family

7.2 Setting the Font Size

7.3 Spacing, Indentation & Style

7.4 Aligning Horizontally & Vertically7.5 Combining All Text Formatting

Trang 19

7.1 Font Family

 Web font format

Trang 21

7.2 Setting the Font Size

 Using font-size property

body { font-size : 12pt; }

 Units

– Absolute Units: mm (millimeters), cm (centimeters), in (inches), pt

(points), and pc (picas)

– Relative Units: px (pixel)

– Scaling Fonts: % (percentage), em (ephemeral unit, M), rem (root

Trang 22

7.3 Spacing, Indentation & Style

lighter, 100  900

overline, line-through

uppercase, lowercase, none

small-caps

Trang 23

7.4 Aligning Horizontally & Vertically

center, justify

Trang 24

7.5 Combining All Text Formatting

font: style variant weight size/height family

Trang 25

8 Spacings, Borders & Shadows

8.1 Spacings (margin, padding)

8.2 Borders

8.3 Rounded Corners

8.4 Shadows

Trang 26

8.1 Spacings (margin, padding)

 padding : size

 padding : top right bottom left

 padding : top left-right bottom

 padding : top-bottom left-right

 padding-top , padding-right , padding-bottom , padding-left

Trang 28

8.2 Borders

border-<side>: width style color; border: width style color;

Trang 29

8.3 Rounded Corners

 border-radius: top-left top-right bottom-right bottom-left;

 border-radius: radius

 border-corner-radius: radius;

where corner is either top-left , top-right , bottom-right , or bottom-left

Trang 30

8.4 Shadows

text-shadow: color offsetX offsetY blur;

Trang 31

 Box Shadow

box-shadow: color offsetX offsetY blur;

Trang 32

9 Pseudo Classes & Elements

9.1 Pseudo Classes

9.2 Pseudo Elements

Trang 33

9.1 Pseudo Classes

Trang 34

 Dynamic pseudo class

Trang 35

9.2 Pseudo Elements

Trang 36

 Generating Content with CSS

Trang 38

THE END

Ngày đăng: 09/02/2023, 15:34