CSS I have a button that has quite a long text:
When the screen resizes (gets smaller), it hides some of the text:
The idea is that it adjusts to the width and unfolds in several lines (the ones you need) without hiding any of the text, I don't know if I'm explaining myself well. I've tried several CSS properties without success, I'd appreciate some help. Thank you
I have tried with CSS property:
- word-wrap: normal | word-break | start | inherent;
- display:inline | blocks | flex | inline-block | inline flex | start | inherent
- overflow-x: visible|hidden|scroll|auto|initial|inherit
I insert the text using jquery:
var texto = l.BTN_TEC;
texto += "<br /><h6 style='color: red; margin: 0;'> " + l.TEXT_BTN_TEC + "</h6>";
$("#showTecnicosBtn").html(texto);
I leave you an example that you can copy so you can see with which css property you solve your problem:
Regarding the size of the button, if you want, you can use the Bootstrap framework to support you in terms of responsiveness so that your button adopts different sizes in terms of different device resolutions.
try this,
Well I don't know your way of writing your style sheet but I dare to answer this question and I hope it works for you
Just use the media for each screen setting, hope it works for you