Section 1

Preview this deck

background-attachment

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (27)

Section 1

(27 cards)

background-attachment

Front

sets whether a background image is fixed or scrolls with the rest of the page

Back

background-position

Front

sets the starting position of a background image

Back

What is the CSS syntax?

Front

selector declaration declaration h1 {color:blue; font-size:12px;} property:value

Back

For W3C compliance, if you define the text color you must also define:

Front

the background-color property

Back

font-size

Front

specifies the font size of text

Back

The font size solution that works in all browsers is:

Front

to set a default size to 100% in the body element and then use Ems though out the rest of the document

Back

background

Front

sets all the background properties in one declaration

Back

text-decoration

Front

used to set or remove decorations from text. (removing underlines form links, adding line-throughs, etc.)

Back

What is the order for background - shorthand property

Front

• background-color • background-image • background-repeat • background-attachment • background-position

Back

background-image

Front

sets the background image of an element

Back

font-style

Front

specifies the font style for text

Back

text-transform

Front

used to specify upper or lowercase in a text. Can be used to turn everything into upper or lowercase or capilize the first letter of each word.

Back

font-variant

Front

specifies whether or not text should be displayed in small-caps font

Back

background-repeat

Front

sets how a background image will be repeated

Back

What is the id selector and how is it defined?

Front

The id selector is used to specify a style for a single unique element. The id selector is defined with a #. #idExample { text-align:center; }

Back

List all the CSS text properties (13 total)

Front

color direction letter-spacing line-height text-align text-decoration text-indent text-shadow text-transform unicode-bidi vertical-align white-space word-spacing

Back

text-alignment is used to set:

Front

the horizontal alignment of text. Text can be centered, aligned left or right and justified

Back

You can specify that only specific HTML elements be affected by a class. Give an example of how.

Front

p.classExample { text-align:center; }

Back

to avoid font sizing issues accross browsers you should specify size with what unit?

Front

Em (recommended by W3C)

Back

What is the syntax for writing comments in CSS?

Front

/ This is a comment /

Back

font-family

Front

specifies the font family for text

Back

font-weight

Front

specifies a weight of a font

Back

text-indent

Front

used to specify the indentation of the first line of text

Back

font

Front

sets all the font properties in one declaration

Back

What are the three ways to insert a style sheet (in cascading order)?

Front

• linking and external style sheet • inside the head of a document • inside and html element

Back

background-color

Front

sets the background color of an element

Back

What is the class selector and how is it defined?

Front

The class selector is used to specify a style for a group of elements. Unlike the id selector the class selector is often used on several elements. THe class slelector is defined with a . .classExample { text-align:center; }

Back