I have a signup-login-forms
div measuring 40vh and 100% of the browser width. Inside of that div I have two forms sitting next to each other. I want both forms to have a height of 100% of the signup-login-forms
div. It works in FireFox and Chrome, but not Safari(I'm using v 7.0.6). The forms' height is only as tall as the forms' content. Below is a list of attempted solutions and the source code. Thanks in advance for any help you guys can offer!
I've tried: 1. changing to min-height:100%. 2. setting height:auto. 3. removing box-sizing:border-box.
Here's my HTML:
<div id="signup-login-forms">
<form id="signup-form" name="signup-form" method="POST" action="#">
<header>
<h2>Create account</h2>
</header>
<fieldset>
<input type="email" id="userEmail" name="userEmail" required="required" placeholder="email">
<input type="email" id="confirmUserEmail" name="confirmUserEmail" required="required" placeholder=" confirm email">
<input type="password" id="confirmPassword" name="confirmPassword" required="required" placeholder="create password">
<small>
<p>By signing up, you agree to our <a href="---">terms and conditions</a>.</p>
</small>
<button class="form-button" id="signup-button" type="submit" formmethod="#" formaction="#">Sign up</button>
</fieldset>
</form>
<form id="login-form" name="login-form" method="POST" action="#">
<header>
<h2>Log-in</h2>
</header>
<fieldset>
<input type="email" id="userEmail" name="userEmail" required="required" placeholder="email">
<input type="password" id="password" name="password" required="required" placeholder="password">
<div id="checkbox">
<input type="checkbox" name="loginPreference" id="loginPreference"><label>Keep me logged in</label>
</div>
<button class="form-button" id="login-button" type="submit" formmethod="#" formaction="#">Log-in</button>
</fieldset>
</form>
</div>
And the CSS:
#signup-login-forms {
width: 100%;
height: 40vh;
background-color: #161618;
margin: 4em 0 0 0;
text-align: center;
}
#signup-login-forms form {
height: 100%;
width: 50%;
text-align: center;
}
#signup-form {
float: left;
border-right: 1px solid rgb(53, 53, 53);
box-sizing: border-box;
}
#login-form {
float: right;
box-sizing: border-box;
}
#signup-login-forms form header {
width: 100%;
padding: 5% 0 0 0;
text-align: center;
}
#signup-login-forms header h2 {
color: #e74c3c;
font-weight: normal;
font-size: 2em;
display: inline;
}
#signup-login-forms fieldset {
width: 100%;
}