Check out my website at the following link:
Visit Homepage
Upon visiting the page, you will notice two boxes - one labeled "Get Started" and the other "Try It Free". Below is the HTML code I used to create them:
<div style="margin-top:-100px">
<span style="margin-right:525px;font-size:18px;font-weight:bold;color:white;">Make money for a referral</span>
<span style="margin-left:-15px;font-weight:bold;font-size:18px;color:white;">Hire the best candidate</span>
<h5>
<img src="images/bluuhorn.png" class="fa-image" style="margin-bottom:15px;padding:3px 0 0 0;width:140px;height:137px;">
<span style="font-size:20px;color:white;margin-right:205px;margin-left:205px">Explainer Video</span>
<img src="images/Company.png" class="fa-image" style="margin-bottom:15px;padding:3px 0 0 0;width:140px;height:137px">
</h5>
</div>
</div>
</div>
</div>
<div>
<button class="btn btn-secondary" style="background-color:#25AAE1;width:245px;height:42px;margin-left:150px"><span style="color:white;font-size:18px">GET STARTED</span></button>
<button class="btn btn-secondary" style="background-color:#25AAE1;width:245px;height:42px;margin-left:470px"><span style="color:white;font-size:18px">TRY IT FREE</span></button>
</div>
I'm facing issues with this setup not displaying correctly on all monitors. My assumption is that it's due to the margins. How can I rectify this to ensure proper alignment across different screens?
A.) The desired outcome is for it to be centered directly below the bars.
B.) I suspect the problem lies in specifying margin-left
in pixels, which may not adjust well on all monitor types.
I envision having the images right above the buttons in a centered position. However, using margins to position the buttons is causing complications.