Search results
21 sie 2012 · You should add these styles to a CSS sheet. div .no-padding { padding:0; } button .full-width{ width:100%; //display:block; //only if you're having issues } Then change add the classes to your code
You can adjust the width of your block buttons with grid column width classes. For example, for a half-width “block button”, use .col-6. Center it horizontally with .mx-auto, too.
Learn how to modify columns with a handful of options for alignment, ordering, and offsetting thanks to our flexbox grid system. Plus, see how to use column classes to manage widths of non-grid elements.
Easily make an element as wide or as tall (relative to its parent) with our width and height utilities. Width and height utilities are generated from the $sizes Sass map in _variables.scss. Includes support for 25%, 50%, 75%, and 100% by default.
30 wrz 2015 · You can add your own css property for button size as follows:.btn { min-width: 250px; }
Width and height utilities are generated from the utility API in _utilities.scss. Includes support for 25%, 50%, 75%, 100%, and auto by default. Modify those values as you need to generate different utilities here. You can also use max-width: 100%; and max-height: 100%; utilities as needed.
Step 1) Add HTML: Example. <button type="button" class="block"> Block Button </button> Step 2) Add CSS: To create a full-width button, add a width of 100% and make it into a block element: Example. .block { display: block; width: 100%; border: none; background-color: #04AA6D; padding: 14px 28px; font-size: 16px; cursor: pointer; text-align: center;