Having trouble centering an entire DIV on the page? Just started learning HTML, CSS, JS, and BOOTSTRAP.
My question is how can I align all rows in the middle of the page. Check out my current code below and see how I want it to look: https://i.sstatic.net/QSpbJ.jpg
<div style="text-align: center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
<h4>
Be inspired by our talented hair stylists who will create a look that enhances your natural beauty, accentuates your features, and evolves with you!
</h4>
<p>
Our salon stylists are dedicated to using their skills and experience in hair styling to craft a unique style just for you. Personalization is at the core of what we do: tailoring each beauty service we offer after a thorough consultation and diagnosis. We ask that you spare the 15 minutes for a YO consultation, even for express services, so we can understand your desires and accurately diagnose your hair's needs to provide treatments that suit you best. We've created the perfect environment for you to build a long-lasting relationship with your favorite stylist, which is why we encourage you to reach out if any recommended home care products don't seem to fit - our policy is simple: 100% satisfaction or money back immediately!
</p>
</div>
This is my current code but I'm aiming for this layout: