So, on 3 of my Android phones (different brands, etc.), one of my web pages looks like this (how it’s supposed to):
On my partner’s iPhone, a family member’s iPhone, and a friend’s iPhone, it looks like this:
My mobile SCSS file that renders the top image area is:
body.landing-page {
&.blog {
> .contents {
max-width: 100%;
width: 100%;
display: block;
padding: 1em;
.page-first {
display: none;
}
}
.mobile-header .menu {
background-color: #4a4a4a !important;
/* height: min-content; */
}
.topic-list {
grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
padding: 2em 0 0 0;
.topic-byline {
.bull {
padding: .2em .5em;
}
}
}
}
.canvas {
padding: 0.8em !important;
}
.bull {
display:none
}
&.blog-post {
header {
background-color: $secondary;
}
.container {
width: 100%;
}
.post-container {
width: 100%;
}
.title-container {
background: no-repeat center/cover fixed;
display: flex;
flex-direction: column;
min-height: 530px;
max-height: 40%;
justify-content: flex-end;
align-items: center;
.title {
font-size: 2.0em !important;
width: 100%;
text-align: center;
/* margin: 0 0 1em 0; */
}
.topic-byline {
flex-direction: column;
.bull {
padding: .2em 1em;
}
}
}
img {
max-width: 100%;
height: auto;
}
.comment-container {
.comment-heading h4 {
text-align: center;
}
.comment-footer {
padding: 0 2em;
box-sizing: border-box;
justify-content: center;
}
}
}
&.blog,
&.blog-post {
.btn-subscribe {
padding: 0;
.fixed-avatar {
width: 60px;
height: 60px;
}
}
}
}
So, why does it seem on every iPhone, the image isn’t being properly positioned, but it is on multiple Android phones? How do I fix this? Been stuck on it for a good 30hrs total now. Weird thing is, also, on my Inspect Element, it’s showing fine there as well on a couple iPhone presets it has…but not their actual devices…