CSS values and units


Exploring an example

I am 200px wide
I am 10vm wide
I am 10em wide

ems and rems


Percentages

I am 200px wide
I am 60% wide of parent element
I am 200px wide
I am 60% wide...

Numbers

This is a box with opacity

Colors

Color keywords

antiquewhite
blueviolet
greenyellow

Hexadecimal RGB values

#02798b
#c55da1
#128a7d

RGB values

rgb(2, 121, 139)
rgb(197, 93, 161)
rgb(18, 138, 125)

RGBA values

rgba(2, 121, 139 .3)
rgba(197, 93, 161, .7)
rgba(18, 138, 125, .9)

HSL values

hsl(188, 97%, 28%)
hsl(321, 47%, 57%)
hsl(174, 77%, 31%)

HSLA values

hsla(188, 97%, 28%)
hsla(321, 47%, 57%)
hsla(174, 77%, 31%)

Images


Position


Strings and identifiers


Functions

This div width is calculated at 20% + 100px

Test your skills: Values and units

Task 1

Task 2

Personas Personnel Gadget (S1)

Starting from your Personas first day the “Personas Personnel Gadget” is where your Personas records and statistics are created, filed and managed.

Callsigns

Unique & protected for each living Rising Thunder Persona. No Duplicate Callsigns. Callsigns are unique & protected, per each living persona. No “living” duplicates.

Task 3