I need help with aligning labels under buttons. I have 3 buttons, each with a corresponding label. I want the labels to be displayed in line under the buttons, and if the length of a label exceeds the button width, it should wrap to the next line. I've tried using CSS but it's not working as expected. Can anyone provide suggestions on what I should consider?
html
echo '<input type=submit class=btn id=\"'.$row['UniqueAdvertisingCode'].'\" value=REDEEM > ';
echo '<input type=submit class=btn id=\"'.$row['UniqueAdvertisingCode'].'\" value=BUY > ';
echo '<input type=submit class=btn id=\"'.$row['UniqueAdvertisingCode'].'\" value= POUCHIT > <br>';
echo ' <label class=lbl>Select Redeem when ready to use coupon at location</label> ';
echo ' <label class=lbl>Select Buy when ready to purchase product at location</label> ';
echo ' <label class=lbl>Save coupon for later</label> ';
css
<style>
.btn {
width: 15em; height: 4em;
}
.lbl{
width: 15em; height: 4em;
}
</style>