Skip to content
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

Add Navbar #24

Open
wants to merge 1 commit 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
50 changes: 50 additions & 0 deletions css/Style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,56 @@ html, body {
padding: 0;
}

#nav-ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
width: 100%;
}

.nav-li {
display: block;
float: right;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
list-style-type: none;
margin: 0 30px 0 0;
}

.nav-li a {
padding: 10px 15px;
color: #333;
color: rgba(255,255,255, 0.8);
text-decoration: none;
font-weight: bold;
text-shadow: 0 1px 1px rgba(0,0,0, 0.3);
-webkit-transition: all 0.75s ease-in-out;
-moz-transition: all 0.75s ease-in-out;
-o-transition: all 0.75s ease-in-out;
transition: all 0.75s ease-in-out;
}

.nav-li a:hover, a:focus {
color: #fff;
background: #fff;
background: rgba(255,255,255, 0.2);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}

#logo{
float: left;
font-weight: bold;
margin: 0 0 0 30px;
}

.container{
padding: 0;
margin: 0;
Expand Down
26 changes: 22 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,47 @@
<!DOCTYPE html>
<html lang="en">

<head>
<link href="css/Style.css" rel="stylesheet" type="text/css">
<title>Chemistry 101 - 3 stages of matter</title>
<link rel="icon" href="img/ice.png" type="image/x-png">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
</head>
<embed name="levelup" src="mp3/levelup.mp3" loop="false" hidden="true" autostart="true">

<body>



<div class="container">

<header id="header">
<nav id="nav-container">
<ul id="nav-ul">
<li class="nav-li" id="logo"><a href="">X-Solid</a></li>
<li class="nav-li"><a href="news.asp">News</a></li>
<li class="nav-li"><a href="contact.asp">Contact</a></li>
<li class="nav-li"><a href="about.asp">About</a></li>
</ul>
</nav>
</header>

<h1>Water (H2O) ∞ Steam (🔥)</h1>
<div class="image-container">
<div class="image-caption-container">
<img src="img/water.png" alt="water image">
<p>You must be shapeless, formless, like water</p>
<img src="img/water.png" alt="water image">
<p>You must be shapeless, formless, like water</p>
</div>
<div id="infinity">&infin;</div>
<div class="image-caption-container">
<img src="img/steam.png" alt="steam image">
<p>There is a force more powerful than steam and electricity: the will</p>
</div>
</div>
</div>
<div class="footer">
Designed by <a href=" https://github.com/adlyloukil/x-solid">contributers</a> during Hacktoberfest 2019
</div>
</div>
</body>
</html>

</html>