/    Sign up×
Community /Pin to ProfileBookmark

flexbox height issues in safari 5.1.7

I’m using flexbox within container but I’m having a bit difficulty setting the height of the flex element. The html body height I’ve set to 100%, the container element inherits the height from body. Within the container I’m using a flex element which is having issues with height in safari 5.1.7
It works perfectly fine in Firefox 82, Chrome, Edge 86, Explorer 11, Opera

The CSS I’ve used:

[code]
body,
html {
min-height: 100%;
}

.content {
min-height: inherit;
border: 1px solid #000;
}

.flex-bx {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
}

.registersignup-loginsignin {
width: 100%;
min-height: 100vh;
// min-height: 100%;
justify-content: center;
align-items: center;
border: 1px solid #FF0000;
}
[/code]

For the HTML

[code]
<div class=”container content”>
<div class=”registersignup-loginsignin flex-bx”>

</div>
</div>
[/code]

I’ve tried height as vh and also % as you can see

Any ideas on how to set this? any pointers/ corrections/ suggestions/ solutions much appreciated

Many Thanks

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@sibertNov 08.2020 — > @nsath#1624912 but I'm having a bit difficulty setting the height of the flex element.

I think you should set the height in the inner element. And let the box outside expand. If I understand you correct.

https://jsfiddle.net/fshm39Lo/
Copy linkTweet thisAlerts:
@nsathauthorNov 09.2020 — No you've understood what I'm looking but as with the initial post it does not show up correctly in the safari browser

Even the fiddle I've tried still the same
×

Success!

Help @nsath spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.11,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...