Hi guys,
Been struggling with making a design fluid on both vertical and horizontal mobile screens. Currently have a custom heading/text element “Digital creative solutions” with a class .hero-heading and the following css:
Blockquote
/* Vertical alignment - Digital Creative Solutions */
@media only screen and (max-width: 480px) {
.hero-heading {
padding-top: 15%;
}
}
@media only screen and (min-width:481px) and (max-width: 767px) {
.hero-heading {
padding-top: 17%;
}
}
@media only screen and (min-width:768px) and (max-width: 979px) {
.hero-heading {
padding-top: 15%;
}
}
@media only screen and (min-width: 980px) {
.hero-heading {
padding-top: 12%;
}
}
When going through different mobile screens using http://lab.maltewassermann.com/viewport-resizer/ I do ran into an issue: when viewed vertically the heading/text element is barely below the logo and the menu, and when viewed horizontally it has enough spacing between the logo and the menu, but in some cases it is pushing the button below it, out of the screen. And the button is being displayed over the next section (the first section has a height:100vh; so it displays at full browser screen).
Is there a way to style the spacing of the custom heading/text element appropriately for both horizontal and vertical view?
link: https://kryptonitecreative.com/







