twitter-bootstrap

Bootstrap 6 to 3 columns when resize

时光怂恿深爱的人放手 提交于 2021-02-11 08:10:43
问题 I trying to coding with Bootstrap, and I have some questions. I have 6 columns in one row (6x1): <div class="row"> <div class="col-md-2 col-sm-2"></div> <div class="col-md-2 col-sm-2"></div> <div class="col-md-2 col-sm-2"></div> <div class="col-md-2 col-sm-2"></div> <div class="col-md-2 col-sm-2"></div> <div class="col-md-2 col-sm-2"></div> </div> After screens go down, on first brakepoint I want 3x2: <div class="row"> <div class="col-md-4 col-sm-4"></div> <div class="col-md-4 col-sm-4"></div

Disable few date ranges in Bootstrap-datepicker

点点圈 提交于 2021-02-11 07:44:25
问题 I'm trying to disable few date range arrays using BeforeShowDay fucntion in Bootstrap-Datepicker. I have such code: var dateArray2 = getDates(new Date("2016-12-20 14:57:28"), (new Date("2016-12-22 14:57:28")).addDays(0)); var dateArray3 = getDates(new Date("2016-12-22 14:57:28"), (new Date("2016-12-25 14:57:28")).addDays(0)); var dateArr = new Array(); dateArr.push(dateArray2); dateArr.push(dateArray3); //Datepicker init $('.date').datepicker({ format: 'dd-mm-yyyy', startDate: date, autoclose

Removing white space bootstrap

六月ゝ 毕业季﹏ 提交于 2021-02-11 07:41:51
问题 I am trying to remove the white space that is between my tiles like the picture below: This is what I currently have : Here is the mark up for the second picture which is currently what I have in place : CSS .mainbody-section { padding-top: 30px; padding-bottom: 30px; } /* Overlay text */ .module { background-color: lightgray; background-attachment: fixed; /*width: 400px;*/ height: 300px; position: relative; overflow: hidden; margin: 20px; } .module > header { position: absolute; bottom: 0;

Removing white space bootstrap

别等时光非礼了梦想. 提交于 2021-02-11 07:41:01
问题 I am trying to remove the white space that is between my tiles like the picture below: This is what I currently have : Here is the mark up for the second picture which is currently what I have in place : CSS .mainbody-section { padding-top: 30px; padding-bottom: 30px; } /* Overlay text */ .module { background-color: lightgray; background-attachment: fixed; /*width: 400px;*/ height: 300px; position: relative; overflow: hidden; margin: 20px; } .module > header { position: absolute; bottom: 0;

Cut away sides of image on small screens

爱⌒轻易说出口 提交于 2021-02-10 19:52:49
问题 I'm using Bootstrap and I have a banner (1920*250px) across the top of my page. The banner is responsive (using .img-responsive ). On small screens (sm and xs) though I want to cut away the sides so that the banner has a new base width of 1140px ( I want to keep the base height at 250px I want the image behave like it is 1140*250px and still be responsive), but I have no idea how to do that. I'd be grateful for any help. Edit: Here is a better explanation of what I want: I have a banner that

all divs with same height in a flexbox with at the bottom

你离开我真会死。 提交于 2021-02-10 14:27:48
问题 I have the following html to build a grid with bootstrap 4. <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <div class="row"> <div class="col-sm-12 col-md-3"> <div class="row"> <div class="col-lg-12"> here are different heights possible </div> </div> <div class="row align-items-end"> <div class="col-lg-12 date"> should always be at

Bootstrap-select align only text right

℡╲_俬逩灬. 提交于 2021-02-10 12:34:07
问题 I want to align the text of the dropdown to the right and keep the carret at his place. I got a long form and every icon are on the right, so moving the carret is not an option. I found how the get the option on the right, but the selected one stay on the left. I try an issue by overriding the js.min, but I need to have other dropdown somewhere else left align. So I ask for your help. There is the code: <div class="form-group oa-vert-marg-2 pull-right"> <label class="col-sm-4 control-label"

Open a Modal Using an Option from a Dropdown - Angular 2 + ngx

泄露秘密 提交于 2021-02-10 11:58:25
问题 Using ngx-bootstrap (4) with Angular 2/CLI. Trying to use a dropdown list to select which modal to open. The modal currently works fine if I just have a button for each modal (not a dropdown), but the requirements call for a dropdown. I tried something like <select class="detailsOption" (change)="openModal($event.target.value)"> <option value="">Select Option</option> <option value={{modal1}} >Option 1</option> <option value={{modal2}}>Option 2</option> </select> <ng-template #modal1> </ng

Open a Modal Using an Option from a Dropdown - Angular 2 + ngx

早过忘川 提交于 2021-02-10 11:58:14
问题 Using ngx-bootstrap (4) with Angular 2/CLI. Trying to use a dropdown list to select which modal to open. The modal currently works fine if I just have a button for each modal (not a dropdown), but the requirements call for a dropdown. I tried something like <select class="detailsOption" (change)="openModal($event.target.value)"> <option value="">Select Option</option> <option value={{modal1}} >Option 1</option> <option value={{modal2}}>Option 2</option> </select> <ng-template #modal1> </ng

Open a Modal Using an Option from a Dropdown - Angular 2 + ngx

怎甘沉沦 提交于 2021-02-10 11:57:49
问题 Using ngx-bootstrap (4) with Angular 2/CLI. Trying to use a dropdown list to select which modal to open. The modal currently works fine if I just have a button for each modal (not a dropdown), but the requirements call for a dropdown. I tried something like <select class="detailsOption" (change)="openModal($event.target.value)"> <option value="">Select Option</option> <option value={{modal1}} >Option 1</option> <option value={{modal2}}>Option 2</option> </select> <ng-template #modal1> </ng