From 00d3720910262a7d784c9187d173f7663ad52b21 Mon Sep 17 00:00:00 2001 From: Anthony Phillips Date: Thu, 2 May 2024 21:12:06 -0400 Subject: [PATCH 1/3] Source css file in directory --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 30ad56b96..16a7e0bb6 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ Introduction to CSS Lab + From 15ff66dc9ff20e8232c948b546246f859d67176b Mon Sep 17 00:00:00 2001 From: Anthony Phillips Date: Thu, 2 May 2024 21:15:10 -0400 Subject: [PATCH 2/3] Change backgroud color of body --- style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/style.css b/style.css index a6f387622..af7265b0f 100644 --- a/style.css +++ b/style.css @@ -1,6 +1,7 @@ /* Tag selector to select the 'body' element */ body { /* Your code here! */ + background: #00b3e6; } /* Tag selector to select all 'div' elements. We only have one 'div' in our HTML */ From c53fb9e8861acffb5509ed653f343fd76ba6f5d0 Mon Sep 17 00:00:00 2001 From: Anthony Phillips Date: Thu, 2 May 2024 21:27:30 -0400 Subject: [PATCH 3/3] Adjust relative path to css and style elements with id and class --- index.html | 3 ++- style.css | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 16a7e0bb6..75a74c262 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,8 @@ Introduction to CSS Lab - + + diff --git a/style.css b/style.css index af7265b0f..84ace9b5f 100644 --- a/style.css +++ b/style.css @@ -7,15 +7,22 @@ body { /* Tag selector to select all 'div' elements. We only have one 'div' in our HTML */ div { /* Your code here! */ + width: 700px; + margin: auto; + font-family: "Helvetica Neue"; + background: white; + padding: 30px; } /* ID selector to select the element with id 'main-header' */ #main-header { /* Your code here! */ + font-size: 22px; color: red; } /* Class selector to select elements containing the class 'perspective-questions' */ .perspective-questions { /* Your code here! */ + font-style: italic; }