<section class="cater" id="cater">
<div class="cater-head">
<h2>BBQ Smokes</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Animi iste harum provident! Illo, commodi. .
</div>
<div class="box1 box">
<div class="box-head">Family Meals</div>
<ul>
<li>Breakfast, lunch, dinner</li>
<li>Pick up or delivery</li>
<li>Pre-order for faster service</li>
</ul>
<button><a class="order-btn" href="#">Order Now</a></button>
</div>
<div class="box2 box">
<div class="box-head">Catering</div>
<ul>
<li>Parties and Special Occasions</li>
<li>Pick up or delivery</li>
<li>Pre-order for faster service</li>
</ul>
<button class="order">Call to Order</button>
</div>
<div class="box3 box">
<div class="box-head">Special Events</div>
<ul>
<li>Events throughout the year</li>
<li>Holiday Events</li>
<li>Food & Music in Monterey Park & El Monte</li>
</ul>
<button class="mailing">Follow us</button>
</div>
</section>
If you add a width to your .box rule it will apply to all of them. Maybe width: 100%?
DevTools is your friend! If you look you can see that the “button” isn’t red. the link (<a>) inside the button has a red color because of your .order-btn rule set. The button element has a grey color from the browser’s internal stylesheet. I’m surprised that the normalize.css doesn’t nuke that.
So, you state that the button is centered for box1, but it is actually the link that is center due to adding equal margin to the left and right sides and that forcing box1 to be larger than it would normally be from the content. I guess I would wrap the buttons with a full width div and then use flex to center.
If you examine the page with the DevTools in Pinegrow or the browser and highlight the <button>, then scroll down in the ‘Styles’ tab you can see that the ‘user agent style’ (tech speak for the browser built-in styles) adds the background-color. If there are a lot of rules you can look in the ‘Computed tab’.
I selected the button then tried Styles, cls, Computed, but still can’t find button background color in Dev Tools.
All I found was button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText;
Could I do
button {
background-color: none;}