Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
Closed
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
95 changes: 95 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,98 @@
* for example: General styles, Navigation styles, Hero styles, Footer etc.
*
*/
/*background colour of whole page*/
body{
background-color: silver;
}

/*adjusting top image in the middle*/
#header-image{
padding-left: 60px;
}

/*Fixing navigation bar to the top*/
nav{
position: fixed;
top: 0%;
width: 100%;
font-size: 20px;
}
ul{
list-style: none;
display: flex;
justify-content: space-around;
background-color:paleturquoise;
}
/*adding hover effect to nav bar*/
#nav-bar a:hover{
color: ghostwhite;
background-color: black;
border-radius: 10px;
padding: 0.5em;
}
/*designing Top heading*/
h1{
padding-left: 1rem;
font-size: 50px;
color: blue;
}
/*page description*/
.pageDescription{
font-size: 20px;
padding-left:1rem ;
padding-top: 0px;
}
/*aligning quot in the middle*/
.quot{
font-size: 25px;
text-align: center;
padding-top: 0px;
background-color: cyan;
word-spacing: 0.3em;

}
/*Styling First child element as mentioned in HOME WORK*/
#article-section .article1:first-child{
background-color: lightgreen;
font-size: 23px;
word-spacing: 0.5em;
font-style: italic;
color: black;
text-align: center;
}
/*Moving headings of articles to right*/
h2{
padding-left: 1rem;
}

/*Designing second article*/
#article-section .article2:nth-child(2){
background-color: cornsilk;
font-size: 20px;
word-spacing: 0.3em;
text-align: center;

}

/*Designing last article*/
#article-section .article3:last-child{
background-color: honeydew;
font-size: 20px;
word-spacing: 0.3em;
text-align: center;

}

/*Designing footer*/
footer{
background-color: wheat;
text-align: end;
padding-bottom: 0px;
}
/*Adding hover effect to links*/
a:hover{
background-color:blueviolet;
font-size: 22px;
color: white;
}
68 changes: 68 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,73 @@
<body>
<!-- Add your HTML markup here -->
<!-- Remember: Use semantic HTML tags like <header>, <main>, <nav>, <footer>, <section> etc -->
<header class="header">
<h1 class="topic">Sports</h1>
<p class="pageDescription">On this page you will find latest news about different sports.</p>
<!--main image-->
<img id="header-image"src="https://static01.nyt.com/images/2020/07/21/autossell/sports-reboot-promo-still/sports-reboot-promo-still-facebookJumbo.jpg" alt="different sports in one picture"
width="90%"
height="700">
<!--Sports quot-->
<h3 class="quot">You must not only have competitiveness but ability, regardless of the circumstance you face, to never quit.</h3>
<nav id="nav-bar">
<ul>
<li><a href="#Cricket">Cricket</a></li>
<li><a href="#Football">Football</a></li>
<li><a href="#Tennis">Tennis</a></li>
</ul>
</nav>
</header>

<!--section containing three articles-->
<section id="article-section">

<!--First article-->
<article class="article1" id="Cricket">
<h2>Cricket</h2>
<img src="https://cdn.britannica.com/63/211663-050-A674D74C/Jonny-Bairstow-batting-semifinal-match-England-Australia-2019.jpg" alt="Bairstow Jonny-Bairstow-batting-semifinal-match-England-Australia-2019"
width="100%"
height="800">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>To find out more about Cricket
<a href="https://www.bbc.co.uk/sport/cricket" target="_blank">Click here.</a>
</p>
</article>

<!--Second article-->
<article class="article2" id="Football">
<h2>Football</h2>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Football_iu_1996.jpg/1200px-Football_iu_1996.jpg" alt="association sports-reboot-promo-still"
width="100%"
height="800">
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
<p>To get more news about Football
<a href="https://www.bbc.co.uk/sport/football" target="_blank">Click here.</a>
</p>
</article>

<!--Third article-->
<article class="article3" id="Tennis">
<h2>Tennis</h2>
<img src="https://photoresources.wtatennis.com/photo-resources/2019/08/15/dbb59626-9254-4426-915e-57397b6d6635/tennis-origins-e1444901660593.jpg?width=1024&height=512" alt="tennis-origins"
width="100%"
height="800">
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable.</p>
<p>To get latest updates about Tennis
<a href="https://www.bbc.co.uk/sport/tennis" target="_blank">Click here.</a>
</p>
</article>

</section>

<!--footer-->
<footer>
<p>Latest news available hourly. To get latest updates about sports visit
<a href="https://www.bbc.co.uk/sport" target="_blank">BBC Sports.</a> All right reserved.
</p>

</footer>


</body>
</html>