I have a row of buttons in my HTML code like this:
HTML :
<div class="buttons">
<div><input type="button"/></div>
<div><input type="button"/></div>
<div><input type="button"/></div>
<div><input type="button"/></div>
</div>
CSS :
.buttons > div
{
float:left;
margin-left:25px;
}
In some cases, only 3 buttons are visible in the row, while in others only 2 buttons are visible.
How can I ensure that the visible buttons take up the entire width of the row with enough space between them (without resizing the buttons themselves)? The width of the button row is set to 600px.