Skip to content

some changes have done #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions zoo-css-challenge/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<main>
<section class="introduction">
<h1>Birmingham Zoo</h1>
<p>‘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.’</p>
</section>

<div id="badge">
Expand All @@ -34,32 +35,31 @@ <h2>Bears</h2>
<img
src="https://placebear.com/200/300"
alt="Grizzly Bear"
width="200"
height="300"
width="300"
height="250"
>
<img src="https://placebear.com/400/300"
alt="Grizzly Bear"
width="400"
height="300"
width="300"
height="250"
>
<img src="https://placebear.com/200/400"
alt="Grizzly Bear"
width="200"
height="400"
width="300"
height="250"
>
</div>
</section>

<section class="tigers">
<h2>Tiger</h2>
<h3>Top 5 Tiger Facts</h3>
<ol>
<h1>tiger facts</h1>
<ul>
<li>Tigers are the largest cat species in the world reaching up to 3.3 meters in length and weighing up to 670 pounds!
<li>Tigers are easily recognizable with their dark vertical stripes and reddish/orange fur.
<li>The Bengal tiger is the most common tiger.
<li>Tigers live between 20-26 years in the wild.
<li>Unlike most other cats, tigers are great swimmers and actually like the water.
</ol>
</ul>
</section>

<section class="giraffe">
Expand All @@ -78,8 +78,9 @@ <h3>Height and Size</h3>
<p>Giraffes use their height to good advantage and browse on leaves and buds in treetops that few other animals can reach (acacias are a favorite). Even the giraffe's tongue is long! The 21-inch tongue helps them pluck tasty morsels from branches. Giraffes eat most of the time and, like cows, regurgitate food and chew it as cud. A giraffe eats hundreds of pounds of leaves each week and must travel miles to find enough food.</p>
</section>

<section class="news">
<h2>News</h2>
<section class="news">
<h2>News</h2>
<div class="newcards">
<div class="card">
<time>2010-04-16</time>
<h4>Helping wild turtles in Seychelles</h4>
Expand All @@ -90,12 +91,19 @@ <h4>Helping wild turtles in Seychelles</h4>
<h4>Learning about the rainforest</h4>
<a>Find out More</a>
</div>
<div class="card">
<time>2023-01-15</time>
<h4>Which big cat are you?</h4>
<a>Find out More</a>
</div>
</div>
</div>
</section>

<section class="education">
<div class="education-container">
<h3>Learning resources for schools</h3>
<p>Explore our activities, videos, and lesson plans to support a wide range of curriculum topics</p>
<p>Explore our activities, videos, and lesson plans to support a wide range of curriculum topics.</p>
<button>Find them here</button>
</div>
</section>
Expand All @@ -108,6 +116,7 @@ <h2>Are there any benefits or discounts for members?</h2>

<section class="programs">
<h2>Programs</h2>
<div class="cards">
<div class="card">
<h4>Children and Family Programs</h4>
<a>Find out More</a>
Expand All @@ -120,12 +129,13 @@ <h4>Adult Programs</h4>
<h4>Youth and young adults</h4>
<a>Find out More</a>
</div>
</div>
<h3>Useful Links</h3>
<p>
</p>
<a href="https://www.w3schools.com">w3schools.com</a>
<a href="https://www.w3schools.com"target="_blank">w3schools.com</a>
<a href="https://www.nationalgeographic.com/" target="_blank">National Geographic</a>
<a href="http://www.wikipedia.org" target="_top">Wikipedia</a>
<a href="http://www.wikipedia.org" target="_blank">Wikipedia</a>
</section>

</main>
Expand Down
77 changes: 57 additions & 20 deletions zoo-css-challenge/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ header {
width: 100%;
padding: 20px;
}

#logo {
border: none;
}
nav {
display: inline-block;
width: 100%;
Expand All @@ -28,18 +30,13 @@ section {
padding: 5%;
background-color: #f8f0fb;
}

img {
border: 5px solid #8075ff;
}

h1,
h2,
h3,
h4,
h5 {
/*Purple*/
color: #6320ee;
color: #9d88ce;
margin-bottom: 1em;
}

Expand All @@ -57,13 +54,17 @@ h3 {

button {
display: inline-block;
border-radius: 3px;
border-radius: 5px;
cursor: pointer;
padding: 10px 20px;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
background-color: #372772;
border: 2px solid black;
color: #fff;

}
button:hover {
background-color: #ff7f11;
}

footer {
Expand All @@ -76,6 +77,7 @@ footer {
}

.introduction {
background-color:#f8f0fb
}

#badge {
Expand All @@ -85,9 +87,8 @@ footer {
border-radius: 50%;
display: inline-block;
position: fixed;
bottom: 20px;
right: 20px;

top: 20px;
right: 20px;
display: flex;
justify-content: center;
align-content: center;
Expand All @@ -96,20 +97,29 @@ footer {

#badge:hover {
background-color: yellow;
transition: 4s;
}

#badge p {
text-align: center;
font-size: 125%;
}

.image-container img {
vertical-align: top;
border: 5px solid #747c92;
}
.image-container img:nth-child(1) {
border: 5px solid royalblue;
}
.image-container img:nth-child(2) {
border: 5px solid greenyellow;
}
.image-container img:nth-child(3) {
border: 5px solid palevioletred;
}
#img1

.image-container img:first-of-type {
vertical-align: bottom;
vertical-align: bottoms;
}

.tigers {
Expand All @@ -118,22 +128,32 @@ footer {
}

.giraffe {
background-color: #465775;
color: #56e39f;
background-color: #483C46;
color:#BEEE62
}

.giraffe h2 {
color: #ef6f6c;
.giraffe h2 ,h3{
color:#F4743B;
}
.giraffe p:first-of-type {
font-size: 20px;
}

.news h2 {
text-align: center;
}
.newcards {
display: flex;
}

.card {
display: inline-block;
display: block;
background-color: white;
padding: 20px;
margin: 10px;
width: 30%;
border: 1px solid black;
border-radius: 10px;
border-radius: 13px;
}

.card h4 {
Expand Down Expand Up @@ -178,6 +198,7 @@ footer {
.membership {
text-align: center;
background-color: #fffffc;
margin: auto;
}

.membership h2 {
Expand All @@ -187,9 +208,25 @@ footer {
.membership strong {
color: #ff7f11;
}
.membership p {
width: 700px;
}

/*Programs*/
.cards {
display: flex;

}

.programs .card {
display: block;

}

p {
text-indent: 25px;
letter-spacing: 2px;
word-spacing: 4px;


}