I have a div section with three divs inside and I want them to be spaced evenly. Here is what it currently looks like on my site. My goal is for them all to be aligned and spaced out evenly.
Here is the CSS and HTML I'm using:
.knowledge-section {
}
.section-icon {
height: 25px;
width: 25px;
display: inline-block;
position: absolute;
top: 0px;
left: 0px;
}
.knowledge-item {
background: white;
border-radius: 4px;
padding-top: 2px;
padding-bottom: 30px;
padding-left: 40px;
padding-right: 35px;
display: inline-block;
position: relative;
}
.first-item {
margin-right: 20px;
}
<div class="knowledge-section">
<div class="knowledge-item first-item">
<div class="section-icon"><img src="admin-suite.png" /> </div>
<h2>Admin Suite</h2>
</div><!--k-item-->
<div class="knowledge-item">
<div class="section-icon"><img src="mobile.png" /></div>
<h2>Mobile and Voices</h2>
</div><!--k-item-->
<div class="knowledge-item">
<div class="section-icon"><img src="conversations.png" /></div>
<h2><a href="www.google.com">Conversations</a></h2>
</div><!--k-item-->
</div> <!--k-section-->
<div class="knowledge-section">
<div class="knowledge-item first-item">
<div class="section-icon"><img src="digital.png" /></div>
<h2>Digital</h2>
</div><!--k-item-->
<div class="knowledge-item">
<div class="section-icon"><img src="journey-analytics.svg" /></div>
<h2>Journey Analytics</h2>
</div><!--k-item-->
<div class="knowledge-item">
<div class="section-icon"><img src="strikedeck.png" /></div>
<h2><a href="www.google.com">Strikedeck</a></h2>
</div><!--k-item-->
</div> <!--k-section-->