Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

Styling index.html #26

Open
wants to merge 4 commits into
base: master
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
90 changes: 90 additions & 0 deletions index-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
body {
padding: 0;
margin: 0;
font-size: 12px;
}

/*========================| BACKGROUND STYLES |========================*/

#background-1{
position: fixed;
height:100%;
width: 100%;
clip-path: polygon(87% 0, 100% 0, 100% 98%, 0 100%, 54% 75%);
background-color:#042d70;
}
#background-2{
position: fixed;
height:100%;
width: 100%;
clip-path: polygon(67% 80%, 100% 0, 100% 100%, 0% 100%);
background-color:#0d47a5;
}
#background-3{
position: fixed;
height:100%;
width: 100%;
clip-path: polygon(0 0, 26% 0, 19% 20%, 0 27%);
background-color:#042d70;
}
#background-4{
position: fixed;
height:100%;
width: 100%;
clip-path: polygon(0 0, 21% 0, 18% 19%, 0 26%);
background-color:#0d47a5;
}


/*=========================| List Style And Positioning |=========================*/


ol{
position: absolute;
width: 100%;
height: 100%;
top:50%;
transform: translateY(-50%);
}
ol li{
position: absolute;
list-style-type: none;
display: inline-block;
text-align: center;
padding:3em 1em;
margin:auto 2.5%;
width:25%;
letter-spacing: 8px;
transform: translate(-50%,-50%);
background-image:linear-gradient(to bottom,#3c7ee8,#95BEB6);
border:2px solid #8eb2ed;

border-radius: 25px;
transition: all .5s;
}

ol li a{
text-decoration: none;
font-weight:bold;
padding: 1.5em;
font-size: 24px;
color: #dedfe0;
}

ol li:nth-child(1){
top:10%;
left:50%;

}
ol li:nth-child(2){
top:40%;
left:30%;

}
ol li:nth-child(3){
top:70%;
left:15%;
}
ol li:hover{
transform:translate(-50%,-50%) scale(1.2,1.2);
}
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<html>
<head>
<title>Web Development</title>
<link rel="stylesheet" href="index-style.css">
</head>
<body>

<div id="background-1"></div>
<div id="background-2"></div>
<div id="background-3"></div>
<div id="background-4"></div>

<ol>
<li><a href= "Snake_FOoDie/Welcome.html" target="_blank">Snake Game</a></li>
<li><a href= "orderTrack/index.html" target="_blank">Assignments</a></li>
Expand Down