Currently, I am a newbie myself and enrolled in a full stack boot camp, focusing on the react section. It seems like it should be doable.
Are you utilizing an external stylesheet, or are you attempting to achieve it using inline styling?
I was instructed to use an external stylesheet. Based on what I can see, try changing the class name to "button".
class='button'
Subsequently, in your external stylesheet, include the following:
.button {
max-width: 400px;
}
Update: I noticed that you are working with react... so it might be className='button'.
Correction:
Hello, thank you for your response! In this scenario, I am unable to set a className for the div myself as it is a part of the library. The strange class you see above "nsm7Bb..." is not of my doing. Therefore, I was wondering if there is a way to forcefully override the library class style. - Olympian Collections
Understood.
Have you attempted using !important
?
Is that your inline CSS?