twitter-bootstrap

Bootstrap dropdown parent menu active class

三世轮回 提交于 2021-02-08 13:05:04
问题 Rookie here, searched for answer and can't discover what i am doing wrong. My menu works fine in active class on "normal" menus, but I cannot find the solution to make the parent menu a "active" one. ![dropdown menu bootstrap][1] The code: <!-- /.abre dropdown --> <li class="dropdown"> <a data-toggle="dropdown" class="dropdown-toggle" href="#">O Que Fazer</a> <ul class="dropdown-menu"> <li><a href="<?php bloginfo('url'); ?>/sem-sair-de-carro/">Sem Sair de Carro <i class="icon-arrow-right"></i

Same height title in bootstrap columns

。_饼干妹妹 提交于 2021-02-08 12:36:12
问题 I have html (bootstrap css) like this: <div class="container"> <div class="row"> <div class="col-xs-6 col"> <div class="block"> <div class="title"> <strong>Dynamic title 1 line</strong> </div> <div> <i>Prop 1</i> </div> <div> Value 1 </div> </div> </div> <div class="col-xs-6 col"> <div class="block"> <div class="title"> <strong>Dynamic title <br>more than 1 line</strong> </div> <div> <i>Prop 1</i> </div> <div> Value 1 </div> </div> </div> </div> </div> And css like this .block{ border: 1px

How to use Django {% csrf_token %} in bootstrap popver

旧街凉风 提交于 2021-02-08 12:12:06
问题 I am using bootstrap popover to pop a small form. how do I get the {% csrf_token %} to work inside the javascript popover. $('.delete_btn').popover({ html: 'true', placement: 'top', title: 'Are you sure?', content: '<form action="{{object.get_delete_url}}" method="post"> {% csrf_token %}<div><input type="hidden" name="next" value="" /> <input type="submit" class="btn btn-danger" value="Confirm" /> </div></form>' }); Thank you all in advance Edit: Now I've solved the issue with csrf_token but

Bootstrap multiselect dynamic options based on first dropdown

北慕城南 提交于 2021-02-08 12:00:32
问题 On my page there are 2 dropdowns, one is a regular select for "Cities" and the other one is a multiselect using bootstrap for "Neighborhoods" of each City. The selected option on the first dropdown will set the options on the second dropdown. I already have it working with regular selects, but with multiselect using bootstrap, I am unable to get the options to change based on the selection. My original question and code This is the code I am trying now -- var select_clone = $('<select>')

How to have mixed fluid and fixed-width content in the same “logical” column?

我们两清 提交于 2021-02-08 11:53:23
问题 I am designing a site using Bootstrap 4. Most of the content lives in regular (fixed width) containers; however there are some images that should be full width (edge to edge), so for these I use .container-fluid . In one specific page I have a layout that looks like this (for large resolutions): The images are full width while the text is not, so my first thought was to put the images in a .container-fluid and the text in a regular .container , like this: <div class="container-fluid"> <div

Bootstrap 4 carousel with to small thumbnails

久未见 提交于 2021-02-08 11:22:20
问题 I've implemented a bootstrap carousel with thumbnails on my website but the thumbnail size is off, they are way too small. I fiddled some with the CSS code within the foto_new page. But my knowledge of CSS is not enough to get this working. Here is my page code: <head> <title>Reis Foto"s</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/lo.css"> <link rel="stylesheet" href="css/boots.css" crossorigin="anonymous

Jinja2 and Bootstrap carousel - “item active”

孤人 提交于 2021-02-08 10:22:54
问题 I'm new to Jinja and this is my first post here on Stack Overflow. I'm trying to loop through a gallery of images handled by bootstrap carousel/modal. I was able to let it work; <img> and <div> are rendered correctly, however I can't loop through the active element. Searching the web, I found that macros can help achieve it but I'm not familiar with using them. Here's the code I'm working on: <div class="modal fade" id="myModalGal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">

Bootstrap 3 Navbar not working on mobile

寵の児 提交于 2021-02-08 10:22:06
问题 My Bootstrap Navbar isn't working on mobile phone view (when it can't display the links). I can't click the button. After many research on Internet and StackOverflow, I tried out the solution and no one works. These are the solutions that I tried; Verify the data-target and id . As here Check Add the <meta name="viewport" content="width=device-width, initial-scale=1.0"> Here Check Add CSS .dropdown-backdrop { position: static; } On Stack, somewhere Here is my navbar code; <nav id="layout-nav"

tooltip bootstrap doesn't work

谁说我不能喝 提交于 2021-02-08 10:15:31
问题 I trying add "tooltip bootstrap" to my web site and has fail. It's doesn't work for me, but early i used it and all was fine. Maybe my css styles wrapping some bootstrap styles. Can someone help? my html $(document).ready(function() { $('[data-toggle="tooltip"]').tooltip(); }); @media (min-width: 1024px) and (max-width: 2560px) { .navbar-custom-header, .navbar-custom-footer { background-color: bisque; margin-bottom: 0px; width: 100%; height: auto; text-align: center; display: block; overflow:

Collapsible bootstrap navbar

为君一笑 提交于 2021-02-08 10:14:01
问题 I have problem with my collapsible navbar. It shows collapsible button but not "li" when i click on button. Demo Here is code <!DOCTYPE html> <html> <head> <title>Navbar Collapse</title> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> <script type="text/javascript" href="jquery/jquery-1.12.2.min.js"></script> <script type="text/javascript" href="js/bootstrap.min.js"></script> </head> <body> <div class="navbar navbar-inverse"> <div class="container"> <a href="#" class=