twitter-bootstrap

Bootstrap colorpicker basic example does not work

最后都变了- 提交于 2021-01-28 03:11:28
问题 I would like to use a color picker plugin for bootstrap : https://farbelous.io/bootstrap-colorpicker/index.html It uses bootstrap 4 and Jquery When trying the very basic code example, published by the developer, in my website or in JS Fiddle, the color picker just does not work properly (you should see a clickable square on the left and be able to pick a color with it) JsFiddle What am I doing wrong ? I thought it might be the imports that did not work, so I used CDNs but it does not change

Hide or Remove Left Border When Collapsing to Small Screen Using Bootstrap

旧街凉风 提交于 2021-01-28 02:07:58
问题 I have 2 divs that collapse nicely into one long column when phone size is reached. I added a left blue border to the second div which creates a really nice vertical devider between the 2 "columns". However, I would like to hide the border or remove at the place that the columns combine into one. Not sure how to do this with the classes already implimented in the div. The border looks clunky and useless once screen is small enough. Here is the working 2nd div. <div class="border col-md-6"

Why does my mobile device still treat my viewport as a desktop?

这一生的挚爱 提交于 2021-01-28 00:54:43
问题 I am doing a quick mobile version of my desktop site in bootstrap and running into some formatting issues. When I expand this view on my desktop, my icons show in a 3 by 4 grid just fine. When I narrow does the width of the window, the grid of images acts accordingly and narrows down to 1 column with all 12 images per row, with no horizontal side bar. However, when I am viewing this on mobile, my my nav bar does not 'snap' to the width of the visible resolution per say and allows me to side

Close button on modal not working…what am i doing wrong?

▼魔方 西西 提交于 2021-01-27 22:01:59
问题 I've made a modal that makes an image pop up when it's clicked but I can't get the close button to work for some reason. Can someone check my code and see where I went wrong? Or give me some suggestions...thank you! <div id = "myModal" class = "modal"> <div class = "modal-content"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <!-- Modal Content (The Image) --> <img class="modal-content" id="mimg"> <!-- Modal Caption (Image Text) --> <div id="caption">

How do I outside-click-to-close this custom offcanvas nav from bootstrap's docs?

好久不见. 提交于 2021-01-27 20:03:10
问题 I'm using the offcanvas experiment code from Bootstrap 4 documentation, but it's not designed to close when you click outside the menu, which is something I would really like it to do. I've tried several of the jquery snippets around the web, but they utilize bootstrap's .collapse and don't work when I edit them to contain the custom .offcanvas-collapse class. <nav class="navbar fixed-top navbar-dark bg-dark"> <button class="navbar-toggler p-0 border-0" type="button" data-toggle="offcanvas"

delete form-control in form-row symfony/twig

你离开我真会死。 提交于 2021-01-27 19:08:45
问题 When i create this builder $builder ->add('categorie', EntityType::class, [ // This field shows all the categories 'class' => Categorie::class, 'mapped' => false, 'multiple' => true, 'attr' => ['class' => 'mdb-select'] ]) and when i do form_row(form.name) i see class has value 'form-control' automaticaly, but me i'm use MDBootstrap and i want to set only mdb-select 回答1: It is caused by one of the default form themes of Symfony, I think by default currently it's the bootstrap 4 theme. To get

Bootstrap Modal Shows Blank screen on click

▼魔方 西西 提交于 2021-01-27 18:50:18
问题 I am trying to show bootstrap modal on click using anchor tag. When I click on the small image, I want to show the larger image using Modal on the page here. Can you have a look at that and see what is the actual problem? Following is my code <ul class="previews-list slides thumbs" style="width: 1000%; transition-duration: 0s; transform: translate3d(0px, 0px, 0px);"> <li style="width: 76px; float: left; display: block;"><a href="#mgsmodal1" data-toggle="modal" data-target="#mgsmodal1"><img

Mega drop down menu onhover flickering

血红的双手。 提交于 2021-01-27 18:32:41
问题 I've got a problem with a mega drop down menu that I found online. It is perfect for my purpose but it acts weird sometimes and it has a flickering and flashing problem. The link where I found it is here: http://bootsnipp.com/snippets/featured/mega-menu-slide-down-on-hover-with-carousel . The author already knows that problem, but essentially it could work just fine for mobile if it will be hide. On desktop version I think is a really good idea and I'm using on a website that I build: http:/

Center Bootstrap navbar title

北城以北 提交于 2021-01-27 17:31:25
问题 I'm looking for handle my Bootstrap navbar title and I don't overcome to center my tag. My script for this part looks like : <style> .navbar.navbar-inverse .navbar-header .navbar-brand { display: inline-block; text-align:center; float: none; vertical-align: top; } </style> <!-- #################### --> <!-- Upper navigation bar --> <!-- #################### --> <nav class="navbar navbar-inverse"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="navbar-header

Resize bottom border on a heading element to fit the text width and also be responsive

我是研究僧i 提交于 2021-01-27 16:11:08
问题 I want to make the bottom border narrower and responsive while keeping text centered at the same time. How could I achieve that? I tried using width property explicitly but that is apparently not working. DEMO: https://www.bootply.com/jEB0e4Ao61 h1 { border-bottom: 1px solid orange; padding-bottom: 5px; width: 400px; } <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1