When utilizing the w3.css and bootstrap libraries to add a link button, an issue arises when resizing the screen as the text inside the button does not respond accordingly. How can we ensure that the text fits within the button based on the screen resolution?
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/
bootstrap.min.css">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<a class="w3-right btn btn-primary w3-animate-right w3-hover-shadow w3-teal
w3-hover-indigo btn-block w3-text-white" style="font-weight: bold;width:40%;"
href="#">Proceed to checkout page</a>