I'm currently facing a challenge with some CSS code.
I have a button that needs to change its content after being clicked (which it does), and then enable user-select: all
.
Here is the code snippet:
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.modal-body {
// CSS styles here
}
// More CSS styles
</style>
</head>
<body>
// HTML elements
</body>
</html>
The issue I am facing is that the user-select property is not working as expected. After doing some testing, I found out that removing the width: 100%
allows me to select the text. However, this width property is necessary for an animation effect on the button. Any suggestions or fixes for this problem?