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

Enhanced a footer to position fixed #13

Merged
merged 1 commit into from
Oct 10, 2019
Merged
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
46 changes: 46 additions & 0 deletions Sign Up Form Designs/MDesign Fixed Footer/register.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!doctype html>
<html lang="en">
<head>
<title>Sign Up</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta charset="utf-8">
<meta name ="viewport" content="width=device-width, initial-scale=1">
</head>

<body>
<div>
<nav class="menu">
<a class="logo" id="logo-name" href="register.html" target="_self">Sign up</a>
</nav>
</div>
<div class="container" style="width:30%; margin-left:auto; margin-right:auto; height:500px; transform:translateY(100px)">
<form>
<h1>Register</h1>
<div class="">
<label>Username</label>
<input type="text" name="username" class="form-control" placeholder="Enter Username">
<span class="help-block"></span>
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="password" class="form-control" placeholder="Enter Password">
<span class="help-block"></span>
</div>
<div class="form-group">
<label>Confirm Password</label>
<input type="password" name="confirm_password" class="form-control" placeholder="Confirm Password"
<span class="help-block"></span>
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Submit">
<input type="reset" class="btn btn-default" value="Reset">
</div>
</form>

</div>
<footer class="footer" id="bottom">
This is the footer
</footer>
</body>
</html>
65 changes: 65 additions & 0 deletions Sign Up Form Designs/MDesign Fixed Footer/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
@import url('https://fonts.googleapis.com/css?family=Sniglet');
@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans+Condensed|Quicksand:400,500,700');
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: #F2F2F2;
}

.logo {
/* font-family: 'Sniglet', cursive; */
font-family: 'Quicksand', sans-serif;
float: left;
padding: 10px 15px;
text-decoration: none;
transition: all 3s ease;
letter-spacing: 5px;
color: white;
font-size: 30px;
font-weight: bold;
position: static;
display: inline;
min-width: 200px;
}

.logo:hover {
transition: all 0.5s ease;
color: yellow;
}

.menu {
background-color: #00927F;
box-shadow: 0 0 5px black;
width: 100%;
height: 50px;
color: white;
margin: 0;
list-style-type: none;
position: fixed;
top: 0;
padding: 0;
transition: all 1s ease;
z-index: 1;
}

.footer {
position: fixed;
padding: 24px 0;
left: 0;
bottom: 0;
width: 100%;
background-color: #00332c;
color: white;
text-align: center;
}

.container input[type=text], .container input[type=password] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}