smus Posted March 19, 2016 Share Posted March 19, 2016 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 More sharing options...
Ingolme Posted March 19, 2016 Share Posted March 19, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now