bootstrap-grid

make images the same size in bootstrap grid

穿精又带淫゛_ 提交于 2020-01-01 09:43:50
问题 I am creating an image gallery with 3 rows, each containing 3 images by using the Bootstrap grid system. All of the images have different size. What I am trying to do is make all of the images the same size. I tried to use the max-height or max-width in my CSS, however it didn't help to make all the images (thumbnails) similar size. Should I just get rig of the thumbnail class or is there another solution? body { padding-top: 70px;} .row .flex { display: inline-flex; width: 100%;} img { width

Expand column inside Bootstrap css grid shifts other columns

只愿长相守 提交于 2019-12-11 07:18:05
问题 I have a bootstrap grid that contain an expand component. My actual problem is that when I expand one column, the other columns get shifted because they are in the same row. I would like to know How can I make column independs each one to another expand component <p> <button type="button" class="btn btn-outline-primary" (click)="isCollapsed = !isCollapsed" [attr.aria-expanded]="!isCollapsed" aria-controls="collapseExample"> Toggle </button> </p> <div id="collapseExample" [ngbCollapse]=

Trying to add checkbox dynamically does not display the value in UI but in console it is displayed

无人久伴 提交于 2019-12-11 02:29:46
问题 I'm trying to add checkbox dynamically with its value.I"m able to see the value in the console, like this where as, it is displaying only checkbox in the page.This is my code. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <div class="row text-center" > <div

Bootstrap 4 Safari on Mac Grid issue

ぃ、小莉子 提交于 2019-12-04 16:17:22
问题 There is an issue with Bootstrap 4 and Safari brower on Mac. When using cols inside a row it breaks it, and doesn't work like on firefox or chrome. I'm using a simple code like this: <div class="row align-items-center"> <div class="col-sm-12 col-md-3 hidden-xs align_left"><h3>TEXT</h3></div> <div class="col-sm-4 col-md-3">TEXT</div> <div class="col-sm-4 col-md-3">TEXT</div> <div class="col-sm-4 col-md-3">TEXT</div> </div> I'm trying different 'fix codes' from another questions but they doesn

make images the same size in bootstrap grid

半世苍凉 提交于 2019-12-04 06:23:59
I am creating an image gallery with 3 rows, each containing 3 images by using the Bootstrap grid system. All of the images have different size. What I am trying to do is make all of the images the same size. I tried to use the max-height or max-width in my CSS, however it didn't help to make all the images (thumbnails) similar size. Should I just get rig of the thumbnail class or is there another solution? body { padding-top: 70px;} .row .flex { display: inline-flex; width: 100%;} img { width:100%; min-height:100px;} <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7

Bootstrap 4 Safari on Mac Grid issue

核能气质少年 提交于 2019-12-03 10:22:30
There is an issue with Bootstrap 4 and Safari brower on Mac. When using cols inside a row it breaks it, and doesn't work like on firefox or chrome. I'm using a simple code like this: <div class="row align-items-center"> <div class="col-sm-12 col-md-3 hidden-xs align_left"><h3>TEXT</h3></div> <div class="col-sm-4 col-md-3">TEXT</div> <div class="col-sm-4 col-md-3">TEXT</div> <div class="col-sm-4 col-md-3">TEXT</div> </div> I'm trying different 'fix codes' from another questions but they doesn't solve the problem. Any clue? Thanks in advance Finally solved the problem with this simple CSS: .row

Bootstrap combining rows (rowspan)

点点圈 提交于 2019-11-27 10:26:44
I am testing Twitter Bootstrap and got stuck with basic scaffolding with rows. I revisited their documentation number of times and I can see nesting columns where you can basically nest columns within a column but I cannot locate the capability of combining rows into one and have it aligned with column next to the uncombined rows. Below picture should illustrate what I want to accomplish. The only workaround solution I came across is using tables but I don't like this idea as my view is that the responsiveness wouldn't work with the use of tables. Does anyone have any elegant solution to this?

Bootstrap cards with 100% height and margin bottom

余生长醉 提交于 2019-11-27 03:20:12
问题 I am attempting to develop a grid of Bootstrap 4 cards with the following requirements: All cards must sit within one div class="row" , because I don't know how many cards there will be total and I want rows to look good at different screen breakpoints. Columns within this row are sized differently at different breakpoints (e.g., col-sm-6 col-lg-4 ). Within any individual 'displayed row', e.g., one row of cards shown on the screen at any given time, each card should have the same height. Each

Bootstrap combining rows (rowspan)

a 夏天 提交于 2019-11-26 15:10:07
问题 I am testing Twitter Bootstrap and got stuck with basic scaffolding with rows. I revisited their documentation number of times and I can see nesting columns where you can basically nest columns within a column but I cannot locate the capability of combining rows into one and have it aligned with column next to the uncombined rows. Below picture should illustrate what I want to accomplish. The only workaround solution I came across is using tables but I don't like this idea as my view is that