Mijn log in menu van mijn website zit een beetje "verstopt", ik zou niet weten waarom... Als je klikt op "Log in" dan krijg je het menu, maar je moet even scrollen vooraleer je iets kan ingeven. In de tekstvelden komt ook de tekst van de pagina zelf. Dit is de link naar mijn website: http://www.dreamworld.cf/new. Ik hoop dat iemand hier het antwoord op weet.
Alvast bedankt!
EDIT:
HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>DreamWorld - <?php echo $title; ?></title>
<link rel="stylesheet" type="text/css" href="../css/skeleton.css"/>
<link rel="stylesheet" type="text/css" href="../css/style.css"/>
<link rel="stylesheet" type="text/css" href="../css/fixed-navigation-bar.css"/>
</head>
<body>
<nav>
<div id="wrap">
<ul class="navbar">
<li><a style="cursor: pointer;" href="../index.php"><img
style="padding-top: 15px; margin-left:30px; width:60px; height: auto;" src="../img/logo.png"></a>
</li>
<li><a class="nav-element" href="/"
style="<?php if ($home == true) { ?>color: rgba(255, 88, 109, 0.81); font-weight: bold; <?php } ?>">Home</a>
</li>
<li><a class="nav-element" href="/shop"
style="<?php if ($shop == true) { ?>color: rgba(255, 88, 109, 0.81); font-weight: bold; <?php } ?>">Shop</a>
</li>
<li><a class="nav-element" href="userarea/tickets.php"
style="<?php if ($tickets == true) { ?>color: rgba(255, 88, 109, 0.81); font-weight: bold; <?php } ?>">Tickets</a>
</li>
<li class="loginbutton">
<a style="<?php if ($login == true) { ?>color: rgba(255, 88, 109, 0.81); font-weight: bold; <?php } ?> cursor: pointer; color: white; width: auto; <?php if ($tickets == true) { ?>color: rgba(255, 88, 109, 0.81); font-weight: bold; <?php } ?>"><img
class="img" src="https://minotar.net/avatar/steve/30.png"> Log in</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<!-- LOG IN MENU -->
<div class="login">
<div class="login-text">
<h3><b>Log in</b></h3>
<form action="userarea/login.php" method="POST">
<input type="text" placeholder="MineCraft username" name="username"/>
<br/>
<input type="password" placeholder="Password" name="password"/>
<br/>
<input type="submit" name="submit" class="button" value="Log in"/>
</form>
<p>If you don't have an account, please click <a href="userarea/register.php">here</a>.</p>
</div>
</div>
<!-- HEADER -->
<header class="header">
<div class="header-text">
<h1 class="header-title"><b>Dream</b>World</h1>
<div class="header-description">
<i>Where <b>your</b> dreams become true.</i>
</div>
</div>
</header>
<!-- INFORMATION -->
<div class="container">
<section class="information">
<h1 class="section-title">INFORMATION</h1>
<div class="section-text">
<p><b>DreamWorld</b> is different... The difference between us and most other server is that we want to
offer
something <b>new</b>. When we even think at a new gamemode, we will create it and optimize it to your
likings!</p>
</div>
<hr/>
</section>
</div>
<!-- SERVERS -->
<div class="container">
<section class="server">
<h1 class="section-title">SERVERS</h1>
</div>
<!-- SURVIVAL -->
<div class="survival-image">
<div class="survival-image-extra">
<div class="image-extra-text">
<p>My name is Oliver Queen,</p>
<p>for five years I was stranded on an island,</p>
<p>with only one goal, <b>SURVIVE</b>.</p>
<a class="button" href="../gamemodes/survival.php">Learn more</a>
</div>
</div>
</div>
<!-- PVP -->
<div class="pvp-image">
<div class="pvp-image-extra">
<div class="image-extra-text">
<p>Be a pro, train like a pro! Discover PvP now!</p>
<a class="button" href="../gamemodes/pvp.php">Learn more</a>
</div>
</div>
</div>
<!-- MINIGAMES -->
<div class="minigames-image">
<div class="minigames-image-extra">
<div class="image-extra-text">
<p>Do you want to play some minigames?</p>
<a class="button" href="../gamemodes/minigames.php">Learn more</a>
</div>
</div>
</div>
<!-- CRAFTVILLE -->
<div class="craftville-image">
<div class="craftville-image-extra">
<div class="image-extra-text">
<p>Real life minecraft! Become rich!</p>
<a class="button" href="../gamemodes/craftville.php">Learn more</a>
</div>
</div>
</div>
<!-- KINGDOM -->
<div class="kingdom-image">
<div class="kingdom-image-extra">
<div class="image-extra-text">
<p>Divide et impera, be king, be powerful!</p>
<a class="button" href="../gamemodes/kingdom.php">Learn more</a>
</div>
</div>
</div>
<div class="container">
<hr/>
</div>
</section>
<!-- STAFF -->
<div class="container">
<section class="staff">
<h1 class="section-title">STAFF</h1>
<div class="section-text">
<p>You can find a list of <b>all</b> staff here! Hover over the images to see more details!</p>
</div>
<div class="staff-pics">
<!-- ROW 1 -->
<div class="row img-row">
<figure class="columns three">
<img class="staff-img" src="img/Christophe6.png"/>
<div class="figcaption"><b>Owner</b> - Christophe6</div>
</figure>
<figure class="columns three">
<img class="staff-img" src="img/_DenMati_.png"/>
<div class="figcaption"><b>Admin</b> - _DenMati_</div>
</figure>
<figure class="columns three">
<img class="staff-img" src="img/dewitte2250.png"/>
<div class="figcaption"><b>Admin</b> - dewitte2250</div>
</figure>
</div>
<!-- ROW 2 -->
<div class="row img-row">
<figure class="columns three">
<img class="staff-img" src="img/vandekerkhof.png"/>
<div class="figcaption"><b>Moderator</b> - vandekerkhof</div>
</figure>
<figure class="columns three">
<img class="staff-img" src="img/thomas02091999.png"/>
<div class="figcaption"><b>Helper</b> - thomas02091999</div>
</figure>
<figure class="columns three">
<img class="staff-img" src="img/FredCl_7.png"/>
<div class="figcaption"><b>Helper</b> - FredCl_7</div>
</figure>
</div>
<!-- ROW 3 -->
<div class="row img-row">
<figure class="columns three">
<img class="staff-img" src="img/hannesvangeel.png"/>
<div class="figcaption"><b>Builder</b> - hannesvangeel</div>
</figure>
<figure class="columns three">
<img class="staff-img" src="img/JoppeLehman.png"/>
<div class="figcaption"><b>Builder</b> - JoppeLehman</div>
</figure>
</div>
</div>
<hr/>
</section>
</div>
<?php
include "../new/inc/footer.php";
?>
CSS:
/* GETTING OUR FONTS */
@import url(https://fonts.googleapis.com/css?family=Raleway:400,100,100italic,200,200italic,300,300italic,800,700italic,700,600italic,600,500italic,500,400italic,900italic,900,800italic|Raleway);
/* RESET ALL VALUES */
* {
margin: 0;
padding: 0;
}
/* MAIN STYLE */
body {
font: normal 18px/22px "Raleway", sans-serif;
background-color: rgba(254, 127, 255, 0.04)
}
hr {
color: black;
}
/* NAVBAR */
a {
text-decoration: none;
color: #0099FF;
}
a:link,
a:visited,
a:hover,
a:active {
text-decoration: none;
}
.fixed-nav-bar {
box-shadow: 0px 0px 3px 0px rgba(50, 50, 50, 0.6);
}
/*HEADER*/
.header {
height: 600px;
background-image: url(../img/EpicPicture.png);
background-size: contain;
background-position: top center;
background-attachment: fixed;
background-repeat: repeat-x;
margin-bottom: 0px;
}
.header-text {
position: relative;
top: 200px;
text-align: center;
}
.header-text {
top: 175px;
}
.header-title {
font-size: 75px;
color: ghostwhite;
}
.header-description {
position: relative;
top: 40px;
color: ghostwhite;
font-size: 25px;
}
p {
margin-top: 5px;
}
/* LOG IN MENU */
.login {
position: fixed;
right: -260px;
top: 100px;
width: 260px;
height: 350px;
background: #DDD;
opacity: 0;
transition: opacity 0.3s linear 0s, right 0s linear 0s;
cursor: pointer;
background: black;
border-radius: 25px;
}
.login-text {
color: white;
padding-left: 20px;
padding-top: 15px;
padding-right: 22px;
}
/* SECTIONS */
section {
margin-top: 20px;
}
.section-title {
font-size: 45px;
}
.survival-image {
height: 400px;
background-image: url(../img/Survival.png);
background-position: top center;
background-repeat: repeat-y;
background-size: cover;
background-attachment: fixed;
position: relative;
border-bottom: 1px solid black;
}
.survival-image-extra {
background-color: rgba(0, 0, 0,0.5);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
/*opacity: 0;*/
}
.pvp-image {
height: 400px;
background-image: url(../img/pvp1.png);
background-position: top center;
background-repeat: repeat-y;
background-size: cover;
background-attachment: fixed;
position: relative;
border-bottom: 1px solid black;
}
.pvp-image-extra {
background-color: rgba(0, 0, 0,0.5);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
/*opacity: 0;*/
}
.minigames-image {
height: 400px;
background-image: url(../img/bedwars2.png);
background-position: top center;
background-repeat: repeat-y;
background-size: cover;
background-attachment: fixed;
position: relative;
border-bottom: 1px solid black;
}
.minigames-image-extra {
background-color: rgba(0, 0, 0,0.5);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
/*opacity: 0;*/
}
.craftville-image {
height: 400px;
background-image: url(../img/craftville1.png);
background-position: top center;
background-repeat: repeat-y;
background-size: cover;
background-attachment: fixed;
position: relative;
border-bottom: 1px solid black;
}
.craftville-image-extra {
background-color: rgba(0, 0, 0,0.5);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
/*opacity: 0;*/
}
.kingdom-image {
height: 400px;
background-image: url(../img/kingdom1.png);
background-position: top center;
background-repeat: repeat-y;
background-size: cover;
background-attachment: fixed;
position: relative;
border-bottom: 1px solid black;
}
.kingdom-image-extra {
background-color: rgba(0, 0, 0,0.5);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
/*opacity: 0;*/
}
.image-extra-text {
color: white;
font-weight: 100;
font-size: 50px;
}
.button {
height: 60px;
font-size: 20px;
text-decoration: none;
color: white;
border: 1px solid white;
padding: 10px 20px;
transition: all 0.3s ease-in-out;
}
.button:hover {
background-color: white;
color: black;
}
/* STAFF */
figure {
margin-bottom: 20px;
position: relative;
opacity: 0;
transform: translateX(20px);
transition: all 0.3s ease-in-out;
overflow: hidden;
}
/* STAFF */
.is-showing {
opacity: 1;
transform: translateX(0px);
}
.staff-img {
border: 1px solid black;
width: 160px;
transition: all 0.3s ease-in-out;
display: block;
}
figure:hover {
border: 0px;
transform: scale(1.1);
}
.figcaption {
position: absolute;
left: -100%;
bottom: 10px;
background: black;
color: white;
padding: 2px 8px;
max-width: 140px;
font-size: 11px;
transition: all 0.3s ease-in-out;
}
/* FOOTER */
footer {
background: black;
color: white;
padding: 40px 0;
bottom: 0;
width: 100%;
}
.footer-items {
max-width: 1000px;
margin: 0 auto;
}
.footer-link {
color: white;
}
input {
color: #666;
}
JS (jQuery):
// OPEN LOG IN MENU
$(".loginbutton").click(function() {
console.log('Clicked');
if($(".login").css("opacity") == 0) {
console.log('1');
$(".login").css({'opacity':'1'});
$(".login").css({'right':'-20px'});
} else {
console.log('2');
$(".login").css({'opacity':'0'});
$(".login").css({'right':'-260px'});
}
});