bootstrap-4

VUE 2 with Bootstrap 4 - Radio button action not working when using data-toggle=“buttons”

懵懂的女人 提交于 2021-02-07 07:15:50
问题 I have the following code: <template> <div class="btn-group" data-toggle="buttons"> <label class="btn btn-outline-dark active"> <input type="radio" name="grp" v-model="channel" value="vh1" checked> VH1 </label> <label class="btn btn-outline-dark"> <input type="radio" name="grp" v-model="channel" value="mtv"> MTV </label> </div> </template> <script> export default { data() { return { channel: 'mtv' } }, watch: { channel: function(newValue) { console.log('value has been changed to ' + newValue)

How to remove border highlight on an <select> after press it

纵饮孤独 提交于 2021-02-07 06:39:16
问题 How can I disable the <select> border highlight (outline) after it got focus. I'm able to disable it for the other elements like <input> , <textarea> , <button> but not for <select> tag. Here are my CSS, I did include select:focus but it just not working. :( input:focus, select:focus, option:focus, textarea:focus, button:focus { outline: none; } Here's the snippet: input:focus, select:focus, textarea:focus, button:focus { outline: none !important; } body { padding: 40px 20px 20px 20px; } .qa

Bootstrap 4 invalid feedback with input group not displaying

浪尽此生 提交于 2021-02-05 21:39:32
问题 I have been looking into Bootstrap 4 - beta, however when using .is-invalid with .input-group it doesn't seem to show up. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet" /> <div class="form-group"> <label for="label">Label</label> <div class="input-group"> <div class="input-group-addon"> label </div> <input type="text" value="" name="label" class="form-control is-invalid"> </div> <div class="invalid-feedback is-invalid"> <strong>Invalid

Bootstrap 4 invalid feedback with input group not displaying

99封情书 提交于 2021-02-05 21:35:44
问题 I have been looking into Bootstrap 4 - beta, however when using .is-invalid with .input-group it doesn't seem to show up. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet" /> <div class="form-group"> <label for="label">Label</label> <div class="input-group"> <div class="input-group-addon"> label </div> <input type="text" value="" name="label" class="form-control is-invalid"> </div> <div class="invalid-feedback is-invalid"> <strong>Invalid

Bootstrap 4 invalid feedback with input group not displaying

家住魔仙堡 提交于 2021-02-05 21:35:18
问题 I have been looking into Bootstrap 4 - beta, however when using .is-invalid with .input-group it doesn't seem to show up. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet" /> <div class="form-group"> <label for="label">Label</label> <div class="input-group"> <div class="input-group-addon"> label </div> <input type="text" value="" name="label" class="form-control is-invalid"> </div> <div class="invalid-feedback is-invalid"> <strong>Invalid

Bootstrap 4 datapicker.js not included [closed]

女生的网名这么多〃 提交于 2021-02-05 12:44:21
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Improve this question I'm using Bootstrap V4 for my new website seeing that it is in Alpha. However I cannot see that it has datepicker.js in its build. Does anyone know if this will be included in V4? If not can anyone recommend a good datepicker? 回答1: Maybe you want to try this:

How to align <hr> elements inline if text is different length before it

丶灬走出姿态 提交于 2021-02-05 12:18:15
问题 (This proposed suggestion wasn't what I was looking for) I have problem with having <hr> elements right after a title and text elements that is repeated by ACF in PHP. Different sizes of titles and text that are printed cause problems with the <hr> element being shown vertically in different places. When I want them to be inline with each other. Here is pic for the current result explaining more the situation: mysituation And code for this part: <h2 class="entry-title py-3 text-center"><?php

How to align <hr> elements inline if text is different length before it

烈酒焚心 提交于 2021-02-05 12:16:23
问题 (This proposed suggestion wasn't what I was looking for) I have problem with having <hr> elements right after a title and text elements that is repeated by ACF in PHP. Different sizes of titles and text that are printed cause problems with the <hr> element being shown vertically in different places. When I want them to be inline with each other. Here is pic for the current result explaining more the situation: mysituation And code for this part: <h2 class="entry-title py-3 text-center"><?php

place elements with multiple styles overlap [duplicate]

纵然是瞬间 提交于 2021-02-05 10:42:25
问题 This question already has answers here : How to overlay images (11 answers) Closed last month . I need help placing my items. I'm just starting out so I need explanations. What will seem obvious to you, will not necessarily be so for me :) I have a header that I want to improve. I would like the two images on the right to be superimposed, ie the "reserve" button is above the image. On the other hand, I would like to get to center the middle image. I know the styles are overlapping and the

My Bootstrap 4 responsive column layout not working

回眸只為那壹抹淺笑 提交于 2021-02-05 09:14:30
问题 So I made a very simple responsive website layout using Bootstrap 4 so according to the code the no of columns should become 4 when it enters tablet mode ie when the viewport is 768px wide while mine is fine up to 770px showing 4 columns but when it becomes 769px it switches into smartphone mode and take the entire width and stacks on top of each other. <div class="row"> <div class="col-lg-2 col-md-3 col-sm-12" style="background-color:red;"> col </div> <div class="col-lg-2 col-md-3 col-sm-12"