I'm working on a html/css project and have issues with my webpage background. I've added a comment field at the end of my code, and the problem is that the "fixed"-value does not seem to care if I add comments -> it will just stay same size and my comments are shown below the picture.enter image description here
I tried changing values in my pseudoclass wrapper:after, and i can change the height to any fixed size, but I'd like it to be "growing" with comments added.
I'd appreciate any help, and have created a fiddle for better understanding:https://jsfiddle.net/w0h4bayn/2/
.wrapper {
position: relative;
clear: both;
background-size: cover;
background: url("../images/background3.jpg") top center fixed;
text-transform: uppercase;
}
/*Pseudoklasse für Anzeige des Hintergrundbildes*/
.wrapper:after {
padding-top: 75%;
display: block;
content: '';
min-height:100%
}
<div class ="wrapper">
<div class="main">
<h2>Neuer Tagebuch-Eintrag</h2>
<form method="post" action="<?= $_SERVER['PHP_SELF'] ?>">
Vorname<br />
<input type="text" name="vorname" value="" /><br /><br />
Name<br />
<input type="text" name="name" value="" /><br /><br />
Dein Eintrag<br />
<textarea rows="10" cols="60" name="eintrag"></textarea>
<br />
<input type="file" name="datei"><br>
<input type="submit" name="submit" />
</form>
<br />
<div>
<h3>Kommentare:</h3>
This<br>
This<br>
This<br>
This<br>This<br>
This<br>
This<br>
This<br>
This<br>
This<br>
This<br>
This<br>
This<br>
</div>
</div>