I am developing a quiz using bootstrap and javascript.
One issue I encountered is that the text in the buttons can sometimes be longer than the button itself. This results in the text not fitting properly within the button, making it unreadable on mobile devices. Is there a way to ensure that the text fits within the button body? Thank you!
<button id="answer_a_btn" class="answer btn btn-default btn-lg btn-block" role="button>
<span><p id="answer_a" style="width: 100%"></p></span>
</button>
<button id="answer_b_btn" class="answer btn btn-default btn-lg btn-block" role="button>
<span><p id="answer_b" style="width: 100%"> </p></span>
</button>
<button id="answer_c_btn" class="answer btn btn-default btn-lg btn-block" role="button>
<span max-width: 100%><p id="answer_c" style="width: 100%"></p></span>
</button>