I have arranged three divs in a row with a 10px margin between them within a responsive layout.
Currently, the divs have margin-left: 10px; margin-right: 10px; to create spacing. However, I aim to align them perfectly within the wrapper without any extra margins at the ends where they meet the wrapper edges.
Any suggestions on achieving this layout?
Appreciate your help!
Code:
CSS -
#frontpage {
float: left;
width: 32.33%;
margin-left: 0.5%;
margin-right: 0.5%;
}
HTML output in Wordpress:
<aside id="frontpage" class="widget widget_text">
<h3 class="widget-title">Quickplay</h3>
<div class="textwidget"><p>Content Here</p>
</div>
<aside id="frontpage" class="widget widget_text">
<h3 class="widget-title">Quickplay</h3>
<div class="textwidget"><p>Content Here</p>
</div>
<aside id="frontpage" class="widget widget_text">
<h3 class="widget-title">Quickplay</h3>
<div class="textwidget"><p>Content Here</p>
</div>