Jump to content

W3 buttons


smus

Recommended Posts

The styles of the button are not working when I call full width button: <button class="w3-btn-block">Button</button>, but they are normal when calling usual ones: <button class="w3-btn">Button</button>

 

 

Link to comment
Share on other sites

That might be because of the way browsers treat form elements. Even displaying them as block won't make them take the full width of their container.

If you changed <button> for <div>. <a> or any other non-form element it would work.

 

If you specifically require a button you can set its width to 100% with CSS.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...