I am very new to this so apologies in advance, I’m guessing this is quite a simple solution but I just cant seem to get it working
I am after html code and CSS for a grid system for 3 boxes, evenly spaced across the page on one line, each box with a different colour. With text in each box: Headings: ’ BUY’, ‘SELL’ and ‘WANTED’ . Underneath the heading, In each box, a text link: ‘Search | List Ad’
To look like this:
So far, I have this code for the html:
<div class="wrapper">
<div class="box a">BUY</div>
<div class="box b">SELL</div>
<div class="box c">WANTED</div>
</div>
(This is not showing the code, but displaying as a webpage for some reason, sorry!)
And this code for CSS:
.wrapper {
display: grid;
grid-template-columns: 200px 200px 200px;
grid-gap: 50px;
background-color: #0000;
color: #444;
}
.box {
background-color: #0e6ef4;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
}
Any help would be greatly appreciated