From 14901afce5eab47b7cf967dbd5cef81cbae0e363 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 21 Jul 2021 00:27:03 +0100 Subject: [PATCH 1/3] HTML CSS Challenge --- zoo-css-challenge/index.html | 25 +++++++++---- zoo-css-challenge/style.css | 72 ++++++++++++++++++++++++++++++++++-- 2 files changed, 85 insertions(+), 12 deletions(-) diff --git a/zoo-css-challenge/index.html b/zoo-css-challenge/index.html index 0892fd58..85a9bd98 100644 --- a/zoo-css-challenge/index.html +++ b/zoo-css-challenge/index.html @@ -21,6 +21,7 @@

Birmingham Zoo

+

The zoo is open every day of the year and features three major biomes: the Tropic Zone, Temperate Territory, and the Polar Circle. From tropical birds, to snow leopards, grizzly bears, and one of the nation’s largest colonies of Antarctic penguins, there are animals to enjoy in every season.

@@ -51,21 +52,20 @@

Bears

-

Tiger

-

Top 5 Tiger Facts

-
    +

    Tiger Facts

    +
    • Tigers are the largest cat species in the world reaching up to 3.3 meters in length and weighing up to 670 pounds!
    • Tigers are easily recognizable with their dark vertical stripes and reddish/orange fur.
    • The Bengal tiger is the most common tiger.
    • Tigers live between 20-26 years in the wild.
    • Unlike most other cats, tigers are great swimmers and actually like the water. -
+

Giraffe

-

Giraffes are the world's tallest mammals, thanks to their towering legs and long necks. A giraffe's legs alone are taller than many humans—about 6 feet . These long legs allow giraffes to run as fast as 35 miles an hour over short distances and cruise comfortably at 10 miles an hour over longer distances.

+

Giraffes are the world's tallest mammals, thanks to their towering legs and long necks. A giraffe's legs alone are taller than many humans—about 6 feet . These long legs allow giraffes to run as fast as 35 miles an hour over short distances and cruise comfortably at 10 miles an hour over longer distances.

Behavior

@@ -84,12 +84,19 @@

News

Helping wild turtles in Seychelles

Find out More +

Learning about the rainforest

Find out More
+ +
+ +

Which big cat are you?

+ Find out More +
@@ -110,16 +117,18 @@

Are there any benefits or discounts for members?

Programs

Children and Family Programs

- Find out More + Find out More

Adult Programs

- Find out More + Find out More

Youth and young adults

- Find out More + Find out More
+ +

Useful Links

diff --git a/zoo-css-challenge/style.css b/zoo-css-challenge/style.css index b9007645..3fa2783d 100644 --- a/zoo-css-challenge/style.css +++ b/zoo-css-challenge/style.css @@ -2,6 +2,9 @@ font-family: sans-serif; } +#logo{ + border: none; +} header { background-color: #211a1d; color: #ffffff; @@ -33,13 +36,17 @@ img { border: 5px solid #8075ff; } +.image-container img:first-of-type { + vertical-align:top; +} + h1, h2, h3, h4, h5 { /*Purple*/ - color: #6320ee; + color:#B8B8FF; margin-bottom: 1em; } @@ -55,9 +62,26 @@ h3 { font-size: 150%; } +.bears{ + vertical-align: top; +} + +.bears img:nth-child(1) { + border-color: red; +} + +.bears img:nth-child(2) { + border-color: yellow; +} + +.bears img:nth-child(3) { + border-color: green; +} + button { + font-size: 1.2em; display: inline-block; - border-radius: 3px; + border-radius: 30px; cursor: pointer; padding: 10px 20px; box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2); @@ -66,6 +90,15 @@ button { color: #fff; } +button:hover{ +color: crimson; +} + +button:focus { + outline: 20px solid rgb(177, 151, 104); + border-radius: 40px; +} + footer { background-color: #211a1d; color: #ffffff; @@ -76,8 +109,13 @@ footer { } .introduction { + background-color: white; + letter-spacing: 0.2em; + } + + #badge { height: 120px; width: 120px; @@ -118,12 +156,21 @@ footer { } .giraffe { - background-color: #465775; + background-color:#483C46; color: #56e39f; } .giraffe h2 { color: #ef6f6c; + color:#F4743B;S +} + +.giraffe p{ + color:#BEEE62; +} + +.giraffe p:nth-child(1) { + font-size: 5px; } .card { @@ -188,8 +235,25 @@ footer { color: #ff7f11; } +.membership p{ + max-width: 700px; + margin: 0px 1px 20px 130px; +} + +.news .card{ + border: 1px solid red; + width: 25%; +} + +.news h2{ + border: 1px solid red; + display:flex; + justify-content:center; +} + /*Programs*/ .programs .card { - display: block; + flex-direction: row; + width: 26.1%; } From 8a68e9debb758d106a97a4ec1e5e36ae61cedbff Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 22 Jul 2021 13:52:39 +0100 Subject: [PATCH 2/3] Revised Zoo-CSS-Challenge --- zoo-css-challenge/README.md | 3 ++- zoo-css-challenge/index.html | 2 +- zoo-css-challenge/style.css | 10 ++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/zoo-css-challenge/README.md b/zoo-css-challenge/README.md index ef30e833..2c0827a1 100644 --- a/zoo-css-challenge/README.md +++ b/zoo-css-challenge/README.md @@ -48,7 +48,8 @@ We don’t like the hard corners here. Can you give the container in the section ## 7) Membership -Give the paragraph a maximum width of 700 pixels, and keep in the middle by adjusting the margin. +Give the paragraph a maximum width of 700 pixels, +and keep in the middle by adjusting the margin. ## 8) Programs diff --git a/zoo-css-challenge/index.html b/zoo-css-challenge/index.html index 85a9bd98..74e96ff0 100644 --- a/zoo-css-challenge/index.html +++ b/zoo-css-challenge/index.html @@ -24,7 +24,7 @@

Birmingham Zoo

The zoo is open every day of the year and features three major biomes: the Tropic Zone, Temperate Territory, and the Polar Circle. From tropical birds, to snow leopards, grizzly bears, and one of the nation’s largest colonies of Antarctic penguins, there are animals to enjoy in every season.

-
+

Opening 2021!

diff --git a/zoo-css-challenge/style.css b/zoo-css-challenge/style.css index 3fa2783d..ae8a93bd 100644 --- a/zoo-css-challenge/style.css +++ b/zoo-css-challenge/style.css @@ -117,21 +117,23 @@ footer { #badge { + transition: all .8s ease; height: 120px; width: 120px; background-color: #bbb; border-radius: 50%; display: inline-block; position: fixed; - bottom: 20px; + top: 20px; right: 20px; - display: flex; justify-content: center; align-content: center; flex-direction: column; } + + #badge:hover { background-color: yellow; } @@ -236,7 +238,7 @@ footer { } .membership p{ - max-width: 700px; + max-width: 90%; margin: 0px 1px 20px 130px; } @@ -246,7 +248,7 @@ footer { } .news h2{ - border: 1px solid red; + /* border: 1px solid red; */ display:flex; justify-content:center; } From 2de81fbf01b684365d74a8fa0a93e917b17aab6c Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 25 Jul 2021 20:00:00 +0100 Subject: [PATCH 3/3] html-css --- .vscode/settings.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..6f3a2913 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file