twitter-bootstrap-4

Hook to bootstrap 4 modal show / hide events from Typescript

╄→尐↘猪︶ㄣ 提交于 2021-01-27 21:43:22
问题 Having a modal with id myModal I'm trying to hook up to events when it shows and closes. Following the documentation of https://v4-alpha.getbootstrap.com/components/modal/#events I have added the following to my modal component: this.modalElement = document.getElementById("myModal"); this.modalElement.addEventListener("hidden.bs.modal", this.onModalHidden); this.modalElement.addEventListener("shown.bs.modal", this.onModalShown); The event handlers for now will only console.log "shown" or

Bootstrap Grid with HTML5 Sections and Aside

爱⌒轻易说出口 提交于 2021-01-05 23:58:39
问题 I am using the Bootstrap 4 grid system , and want to float an aside down the right hand side of the screen. Currently my MAIN content is wrapped in col-xl-3 , I want the ASIDE to also use col-xl-3 , but I want it to run the height of the page, not just the height of the row it is in, as it is currently pushing the height of the row out... As you can see from the image, my aside is pushing the top row higher than the bottom... All I have done code wise is this; section.body article, section

Bootstrap Grid with HTML5 Sections and Aside

流过昼夜 提交于 2021-01-05 23:48:16
问题 I am using the Bootstrap 4 grid system , and want to float an aside down the right hand side of the screen. Currently my MAIN content is wrapped in col-xl-3 , I want the ASIDE to also use col-xl-3 , but I want it to run the height of the page, not just the height of the row it is in, as it is currently pushing the height of the row out... As you can see from the image, my aside is pushing the top row higher than the bottom... All I have done code wise is this; section.body article, section

Bootstrap 4 row extends outside of container

江枫思渺然 提交于 2020-08-22 04:46:06
问题 I am working on a simple website for my boss. I decided to try using bootstrap and opted for version 4. So I have a pretty good template structured out and noticed that the row for the main content extends out past the bounds of the container div. It is the only row on the page which does that. I tried changing spacing with margin or padding on either/both elements and it didn't seem to change anything. I also tried containing the main content inside of a section tag, since the other two rows

IE11 flexbox issue: bootstrap 4 card height is maximum of child card-body “img-fluid”

余生颓废 提交于 2020-07-06 13:47:05
问题 I am working on a template in bootstrap 4.0.0 that I will use for multiple gallery pages containing many (50+) mixed ratio images. I have a grid layout that works well except for IE11. My images are inside cards that are inside buttons and the card heights seem to be stretching to the maximum height of the responsive images. I need help determining if there is a way to make the boxes shrink in height as well as width in IE 11. (width part is working) I want to keep what I have : Cols equal

How to change the width for the col-xs bootstrap?

谁都会走 提交于 2020-06-02 03:59:27
问题 Hey I find nowhere if I can change the default value of col-xs-12 I tried to put that but I all broken... .col-xs-12 { width: 600px; } If you are a doc where I can find the answer that will be really awesome ! Thx 回答1: Never Change Bootstrap classes if you want to change any col- class simply add one more class on same element and style that class, and your external CSS file should be loaded after bootstrap, so the css file has effect Example: <div class="col-xs-12 my-custom-width"></div>

How to change the width for the col-xs bootstrap?

前提是你 提交于 2020-06-02 03:56:29
问题 Hey I find nowhere if I can change the default value of col-xs-12 I tried to put that but I all broken... .col-xs-12 { width: 600px; } If you are a doc where I can find the answer that will be really awesome ! Thx 回答1: Never Change Bootstrap classes if you want to change any col- class simply add one more class on same element and style that class, and your external CSS file should be loaded after bootstrap, so the css file has effect Example: <div class="col-xs-12 my-custom-width"></div>