diff --git a/index.html b/index.html index 7b65980..1c59c37 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,6 @@ + @@ -7,28 +8,30 @@ CSS Selector Fun + - -

Make this text orange and 28px

-

Make this text orange and 28px

-

Make this text orange and 28px

+ +

Make this text orange and 28px

+

Make this text orange and 28px

+

Make this text orange and 28px

Make this text green and 28px

Make this text red and 28px

-

Make this heading pink

-

Make this heading pink

-

Make this heading pink

-

Make this heading pink

+

Make this heading pink

+

Make this heading pink

+

Make this heading pink

+

Make this heading pink

- This text should stay black and 28px + This text should stay black and 28px

- Make this text blue and 12px. Make this paragraph have 10px left margin and a black 2px bottom border. + Make this text blue and 12px. Make this paragraph have 10px left margin and a black 2px bottom + border.

@@ -46,14 +49,16 @@

Make this heading pink

-

This text should be purple, 10px, all capitals and bold. Make this paragraph have 10px left margin and black 1px bottom border.

+

This text should be purple, 10px, all capitals and bold. Make this paragraph have 10px left margin and black + 1px bottom border.

-

Make this text orange and 28px.

+

Make this text orange and 28px.

- + + \ No newline at end of file diff --git a/styles.css b/styles.css index e69de29..c3293fc 100644 --- a/styles.css +++ b/styles.css @@ -0,0 +1,59 @@ +.orange { + color: orange; + font-size: 28px; +} +.paragraph { + color: green; + font-size: 28px; +} +#paragraph { + color: red; + font-size: 28px; +} +.pink { + color: pink; +} +div.container-one { + color: black; + font-size: 28px; +} +div.container-one p { + color: blue; + font-size: 12px; + border-bottom: 2px solid black; + margin-right: 10px; +} + +div.container-two span { + font-size: 28px; + color: black; +} +/* purple and 15px. Make this paragraph have 10px left margin + and a black 1px bottom border. */ +div.container-two p { + color: purple; + font-size: 15px; + margin-left: 10px; + border-bottom: 1px solid black; +} +/* Make this text 12px and grey */ +.container-two p span { + color: grey; + font-size: 12px; +} +/*

This text should be purple, 10px, all capitals and bold. Make this paragraph have 10px left margin and black + 1px bottom border.

*/ +.container-one.container-two p { + color: purple; + font-size: 10px; + text-transform: uppercase; + /* font-weight: bold; */ + margin-left: 10px; + border-bottom: 1px solid black; +} + +.container-one.container-two p span { + /*

Make this text orange and 28px.

*/ + color: orange; + font-size: 28px; +}