I am currently working on a responsive HTML page, but I am facing an issue that I cannot replicate on fiddle. To troubleshoot, I have published the page on "www.000webhost". You can access it using this link : . Kindly view it on Firefox and let me know if the link is not functioning.
The problem I am encountering is with the alignment of the text "Find your home" on the first image when the innerWidth reaches around 695px. The text no longer appears centered under this width limit and instead maintains a consistent left margin.
A similar issue occurs with the form displayed below the second image at approximately the same width limit.
To aid in troubleshooting, I have included the clientWidth and innerWidth values at the top of the page. Please disregard other elements on the page as I am specifically focusing on resolving this particular issue.
Below is the relevant section of HTML code pertaining to this alignment issue:
<div class="homePageImage1" style="background-size:cover;">
<div class="position2 horizontal-center textAlignCenter lineHeight117 pinyonscriptregular120dieseFFFFFF">
Find Your Home
</div>
</div>
<div class="homePageImage2">
<div class="position3 horizontal-center" [formGroup]="searchFormGroup">
<div class="position4 border2 textAlignCenter backgroundwhite poppinsextrabold14diese372300">
Search
</div>
<span class="position5 width100percent" >
<input class="floatLeft dimension1 border3 poppinsregular16diese372300" type="text" placeholder="Dans quelle ville ? Quartier ?" formControlName="ville">
<input class="floatLeft dimension2 border4 poppinsregular16diese372300" type="text" placeholder="Votre budget max" formControlName="prixMax">
<div class="floatLeft dimension3 textAlignCenter lineHeight48 backgroundPrimary poppinsbold12diese372300">SEARCH</div>
</span>
</div>
<div class="position6">
<a href="javascript:" class="poppinsregular14dieseFFFFFF textdecorationunderline">Advanced search</a>
</div>
</div>