Unit 4

Helpfulness: 0
Set Details Share
created 4 years ago by Something_Glitchy
3 views
updated 4 years ago by Something_Glitchy
show moreless
Page to share:
Embed this setcancel
COPY
code changes based on your size selection
Size:
X
Show:
1

Content

The content of the box, where text and images appear

2

Padding

Clears an area around the content. The padding is transparent

3

Border

A border that goes around the padding and content

4

Margin

Clears an area outside the border. The margin is transparent

5

div element

div {

6

Width:

width:

7

background-image:

adds an image to the background

8

tiling

...

9

background-repeat

repeats the background

10

no-repeat

...

11

repeat

...

12

repeat-x

...

13

repeat-y

...

14

texture

A arepeted image that looks seamless

15

Fallback

...

16

center

bring to middle

17

Comment-Syntax

Adds comments to a CSS code

18

Multiple selector styling

styling with multiple selectors

19

CSS Inheritance

...

20

Position

...

21

Static

places the element in its usual location in the normal document flow.

22

Fixed

1.removes the element from the normal document flow and fixes it to a specific location in the browser window. Even when the page is scrolled, its location will remain the same.

23

Relative

1.keeps the element in the normal document flow but allows us to move it around relative to its normal location.

24

Absolute

removes the element from the normal document flow and allows us to place it in a specific location. It will scroll along with the surrounding page content.

25

Position property

...