css calc margin-top based on height?
/*with margin-top the % is relative to width of parent element (kinda silly)
you can use top:50% which will be relative to height of the parent element*/
.my_element{
top:50%
position:relative;
}
css calc margin-top based on height?
/*with margin-top the % is relative to width of parent element (kinda silly)
you can use top:50% which will be relative to height of the parent element*/
.my_element{
top:50%
position:relative;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us