FAQ Database Discussion Community


Django: form validation errors are not being displayed when form is in a modal

django,twitter-bootstrap,bootstrap-modal
I am trying to make a Django web app that will be able to add and display certain information in a database (the Agent model seen below) I have a form in a twitter bootstrap modal. When I enter valid data and submit, everything works as expected and the modal...

How to make background body overlay when use twitter-bootstrap popover?

html,css,twitter-bootstrap
Currently I used this twitter-bootstrap popover: <button type="button" class="btn btn-default" style="margin-top:11px; padding-bottom:4px; padding-top:4px;" data-container="body" data-toggle="popover" data-trigger="focus" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> Upgrade The output: How I can make the background overlay like bootstrap modal? My expected output I use this jquery to popover $(function(){ $('[data-toggle="popover"]').popover({ placement...

CSS - Bootstrap centering col-md-3 with weird results

css,twitter-bootstrap
I was having an issue center col-md-3 divs inside a wrapper. When I have 3 col-md-3 and use this code in my wrapper: .wrapper { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; } the results are great! but when I have...

change icon on collapse in Bootstrap 2.3 not in bootstrap 3

javascript,jquery,css,html5,twitter-bootstrap
I am using bootstrap 2.3 collapse in my project. I need to change icons on collapse means on show and hide I need to change icons. with bootstrap 3 some shown and hidden functions are showing in internet but I need with Bootstrap 2.3. Please let me know how to...

Bootstrap Progress Bar Not Showing Colors [closed]

html,css,twitter-bootstrap
I got this code from bootstrap, but it doesn't show the bar color. Do I need a CSS? How do I go about adding the color? I got it from here: http://getbootstrap.com/components/ <div class="progress"> <div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"> <span class="sr-only">40% Complete (success)</span> </div> </div>...

Spinning icon, next to edit box

twitter-bootstrap
I am trying to create an edit box, and next to it, a small spinner, that when finished, will show based on a button click, indicating 'busy'. The edit box AND the icon, should use 100% of the containers width (col-xs-12). However, with my current code, the icon goes on...

list checkboxes displayed horizontal

html,css,html5,twitter-bootstrap,css3
I have the following markup:- <div class="fil hori now"> <span class="label-new"> <ul class="ngc"> <li> <input class="any" id="any" name="any" type="checkbox"> <label id="any" for="any">Any</label> </li> <li class="new-select"> <input id="item1" name="item1" type="checkbox"> <label id="item1" for="item1">item1</label> </li> <li class="new-select"> <input id="item2" name="item2" type="checkbox"> <label id="item2"...

Bootstrap daterangepicker add option manually using jquery

jquery,twitter-bootstrap,bootstrap
I am using Bootstrap DateRangePicker $('#reservationtime').daterangepicker({ timePicker: true, timePickerIncrement: 30, format: 'MM/DD/YYYY h:mm A' }); I want to add manual option to this daterangepicker using Jquery. I need something like this $( "#reservationtime" ).daterangepicker( "option", "minDate", '01/01/2012'); Is there any option available? ...

Marionette CompositeView - change in template each nth items

twitter-bootstrap,backbone.js,marionette,composite-view
I'm using Marionette for a while, but I'm not sure how I can do what I want, in a simple manner. I have a composite view, which renders something like this: <div class="row"> <div class="col-xs-12"> <div id="items"></div> </div> </div> Each of my item is being rendered as a: <div class="col-xs-3">foo</div>...

AngularJS & Bootstrap Modal - loading template outside controller

angularjs,twitter-bootstrap,angular-bootstrap
I have a dialog which is being used in 3 scenarios within the same page. I have created a controller similar to the below: var modalInstance = $modal.open({ templateUrl: 'myModalContent.html', controller: 'ModalInstanceCtrl', size: size, resolve: { items: function () { return $scope.items; } } }); <script type="text/ng-template" id="myModalContent.html"> <div class="modal-header">...

How we can create dynamic layout of columns with the help of bootstrap?

php,jquery,html,css,twitter-bootstrap
I am trying to make a dynamic column layout with the help of twitter bootstrap. All yellow blocks are generated in a for loop Example <div class="container"> <div class="col-lg-4"> Sidebar </div> <div class="col-lg-8"> <div class="col-lg-4"></div> <div class="col-lg-4"></div> <div class="col-lg-4"></div> <div class="col-lg-4"></div> <div class="col-lg-4"></div> <div class="col-lg-4"></div> <div class="col-lg-4"></div> <div...

Sticky navbar creating a right margin on scrolling down

css,twitter-bootstrap
I am trying to create a nav bar (boot strap) that sticks to the top once scrolled down past through it. I was able to achieve this behavior using affix plugin, but with a glitch. The nav bar is creating certain amount of right margin on scrolling down. I am...

Move icon up and inline with my main heading

html,css,twitter-bootstrap
I'm trying to move around with my main icon in the top, which is placed in the navbar. I'm using bootstrap and a normal css file called "Site.css" In my masterpage i i'm getting the files down by these: <link href="Content/Site.css" rel="stylesheet" /> <link href="Content/bootstrap.css" rel="stylesheet" /> Some code: <div...

How to reload page after bootstrap modal closed

javascript,jquery,twitter-bootstrap,bootstrap-modal
$("#customerAdded").modal("show").on("shown.bs.modal", function () { window.setTimeout(function () { $("#customerAdded").modal("hide"); }, 5000); location.reload(); }); Ok, it works. But with location.reload(), despite I change the time, the page is reloaded immediately. I would, after modal closed, that the page was reloaded according the time specified. ...

Centering navbar pills vertically within the navbar using flexbox

html,css,twitter-bootstrap,flexbox
I am terrible at CSS so I am having trouble centering my <li> (navbar pills) vertically for my navbar. This navbar is from twitter bootstrap Here is the HTML for my navbar: <div class="container"> <nav class="navbar navbar-default navbar-fixed-top"> <ul id="nav_pills" class="nav nav-pills" role="tablist"> <li role="presentation"> <a href="/">About</a> </li> <li role="presentation">...

Including Javascript for button click in Jade

javascript,node.js,twitter-bootstrap,jade
I am having trouble detecting a button click using Node.js, Bootstrap and Jade. I have the following Jade code but I am not seeing the log from the onclick method and there is no change to the button. So the method never gets called. extends layout block content .jumbotron .container...

Handle a file attachment rails form

ruby-on-rails,twitter-bootstrap
I have a bootstrap form in my rails app where a user is supposed to attach a csv file. The form works and allows for a successful upload, but what happens to that file from there? I am trying to better understand this as I need to use the file....

Twitter-Bootstrap drop down log in closes when text areas are clicked

javascript,jquery,html,twitter-bootstrap
Hi I'm designing a website with JQuery for the first time. I am using Twitter-Bootstrap for a dropdown login box and I can't get the JQuery script right to make the box stay open when you click on the text area. I've tried everything and I am familiar with java...

boostrap & Normalize.css: spacing problems

html5,twitter-bootstrap,css3
Boostrap normalize does not seem to remove top and left/right spacing from theme i am developing. Could somebody give hint where is the problem in my code. I have tried several reset css files also without any effects. Index <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- GOOGLE FONTS -->...

Setting up the page grid using push and pull

html,twitter-bootstrap,css3,twitter-bootstrap-3
I'm using Bootstrap and I'm having issues setting up my grid. How do I use bootstrap's push/pull to setup my columns as below? This is what I've got so far, <div class="row"> <div class="col-xs-5 col-sm-3 col-md-3">A</div> <div class="col-xs-7 col-sm-9 col-md-2 .col-md-push-7">B</div> <div class="col-xs-12 col-sm-12 col-md-7 .col-md-pull-9">C</div> </div> ...

Bootstrap table with a sidebar

twitter-bootstrap,responsive-design,html-table
I've been reading about the grid system and played around with my code over and over, but can't get the website to look like how I want it to. I want a sidebar next to a "content" area (basically a table). Here is an image to help the visual. Top...

Bootstrap 3 collapsed menu not working on mobile screens

jquery,css,twitter-bootstrap,twitter-bootstrap-3
It seems a lot of people are having this trouble (https://github.com/twbs/bootstrap/issues/7968), but the solution that worked for some is not working for me. If you try to open my website at http://axxon.co and resize the window until the burger menu appears, you'll notice that nothing happens if you click on...

Border spacing between the columns

html,css,twitter-bootstrap
I have 3 columns in a row, each of which has the class col-xs-4 and so they cover up the entire row. Now I need to add border for each of these columns and I don't want them to overlap. Currently, am using border but there's no spacing between the...

'hidden.bs.modal' lazy triggering?

javascript,jquery,twitter-bootstrap
var switchProductDetailsToCartModal = function (target){ $('#productDetailsModal').modal('hide'); // 'hidden.bs.modal' was not triggered here $('#carousel-example-generic').carousel('pause'); // } //'hidden.bs.modal' handler triggered here and carousel steel cycling $(function() { $('#productDetailsModal').on('hidden.bs.modal', function (){ $('#carousel-example-generic').carousel('cycle'); }); }); Does it normal behavior? Anyway how can I trigger 'hidden.bs.modal' handler immediately after modal('hide') ? jquery-1.11.3, bootstrap3...

Krajee Bootstrap File Input unresponsive

javascript,php,jquery,twitter-bootstrap
I'm trying to use this plugin and I'm not getting anything back when I click submit on the form. This is the form that is inside a modal. I'm using bootstrap. <form id="myForm" action="#" method="post" enctype="multipart/form-data"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true" id="closeModalTimes"> &times; </button> <h4 class="modal-title">Upload...

Bootstrap Tabs First Tab dynamically loading without having to click on it

javascript,jquery,ajax,twitter-bootstrap,tabs
I use the Bootstrap tabs in my app and load some parts of the content of them dynamically via ajax calls. It works everything fine except the first tab... The tab is loaded, but the Ajax call is only submitted after a click on the tab. How can i make...

Content section overlap footer

html,css,twitter-bootstrap,css3,twitter-bootstrap-3
I have a a page as following that works fine in big screens but in small screens the mainsection overlap the footer. How can I have the footer always at the bottom of the page. Also in small screens the location of the footer should be based on content of...

Best Solution for Bootstrap Carousel Image Size Changes Causing Elements on Page to Move

html,css,image,twitter-bootstrap,carousel
I have an image carousel on my site's homepage, and sometimes a few of the images have slightly higher height and width. This causes the page elements, such as a list of test items below the carousel, to move around as each image in the carousel changes. What is the...

Bootstrap Grid on the screen

twitter-bootstrap
I am new to Bootstrap. I just created a sample web app using layoutit.com. When I do the preview on the website, the columns are aligned properly. I used md-2 and md-10, thereby dividing the screen into 2 layouts with 2 and 10. The first column with 2 grids, starts...

How to use a CSS for only one div and not the rest of the code?

css,twitter-bootstrap
I imported this: <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> And it started to affect other things in my page, such as buttons. How can I tell my html to only use that stylesheet for this code? <div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"> <span class="sr-only">60% Complete</span> </div> </div> ...

Centering image in the middle of page with Jade and Bootstrap

twitter-bootstrap,jade
I just started using Jade and Bootstrap and have run into a snag. I am trying to center an image in the middle of my index.jade. I was able to get it horizontally centered, but not vertically centered. Below is my index.jade and a image of what it currently looks...

End to end alignment of 3 Columns using Bootstrap

twitter-bootstrap
I am new to bootstrap. I tried aligning three sections end to end (horizontal manner) with equal space. (1st column should be aligned to extreme left of the container and last should be aligned to extreme right.) There is extra space at the third column. I have added bootstrap css...

How to put three or more images at navbar-right (Bootstrap)

html,css,twitter-bootstrap
I am creating a navbar with Bootstrap, the problem is when I try to put two or more images in the right navigation bar, the height of the bar increases how can i fix it? Thanks!! <ul class="nav navbar-nav navbar-right"> <li><a href="http://www.youtube.es/"><img src="IMAGENES/youtube.png"/></li> <li><a href="http://www.twitter.es/"><img src="IMAGENES/twitter.png"/></li> <li><a href="http://www.facebook.es/"><img src="IMAGENES/facebook.png"/></li> </ul>...

How to prevent bootstrap from making font bold?

javascript,jquery,html,css,twitter-bootstrap
Without including the bootstrap link in this simple example, the following code performs as expected: Hovering over any word turns the word red, and hovering away returns it to black. With the bootstrap link included, the change from red/black still works fine, but for some reason, the font becomes bold...

Bootstrap Modal popup not scrolling with keyboard

jquery,twitter-bootstrap
I'm using bootstrap modal, I added a scroll bar and it works fine with the mouse, but when I use the keyboard only the background page scrolls. What can I do to solve this. This is the css code that I'm using. .modal .modal-body { height: 520px; overflow-y: auto; }...

Why does my hover button dropdown not stay open when I mouse-over?

javascript,jquery,twitter-bootstrap
First things first: http://jsfiddle.net/9L81kfah/ I have a Bootstrap dropdown that's supposed to open and stay open if somebody does a mouse-over for more than 200ms, especially if they then move the mouse over the menu content, but it's not staying open. What am I doing wrong here? This is the...

How to hide bootsrap grid systems' column

twitter-bootstrap
I tried this code: <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script...

Left and Right Carousel Controls not Working when Smooth Scroll for Anchor Tags Used

javascript,jquery,twitter-bootstrap,carousel
I am using the following script for smooth scroll effect for anchor tags: $(function() { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top }, 1000); return false;...

Customize Bootstrap on a Yeoman project

twitter-bootstrap,yeoman
I've an Angular application scaffolded with Yeoman and using Twitter Bootstrap. On their website, Bootstrap prupose to customize the design of their components (http://getbootstrap.com/customize/). Then you download a zip containing Bootstrap files with your customization. On the downloaded zip there are : bootstrap/ fonts/ js/ css/ config.js I just modified...

How to change the class of an element based on the class of another

javascript,jquery,html,css,twitter-bootstrap
I have a list of navigation items where when one is clicked it's status becomes active $(document).ready(function() { $('li').click(function() { $('li').removeClass('active'); $(this).addClass('active'); }); }); I have a container div with multiple hidden divs inside and based on the order of the li that is active I want to be able...

bootstrap center 3 col-md-3 divs

css,twitter-bootstrap
I have a wrapper like so: <div class="community-images"></div> and inside this wrapper I have 3 col-md-3 divs: <div class="col-md-3"></div> <div class="col-md-3"></div> <div class="col-md-3"></div> what I am trying to do is center these 3 divs inside the wrapper, how would I accomplish this ? Here is the CSS: .community-images { padding:...

Bootstrap 3 Navbar not working on mobile

html,css,twitter-bootstrap,navbar
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...

Bootstrap Navbar vertically align Brand with other links

html,css,twitter-bootstrap
I want to vertically align the Brand in a Bootstrap Navbar with the other links, such that bottom of each element is aligned vertically. The current alignment is either center aligned or just unaligned. The HTML is something like: <nav class="navbar navbar-inverse navbar-fixed-top"> <ul class="nav navbar-nav"> <li><a href="/" class="navbar-brand">Brand</a> <li><a...

Include HTML code in BootStrap Modal Dialog

javascript,jquery,html,twitter-bootstrap,bootstrap-modal
I want to make use of Boot Strap Modal(http://nakupanda.github.io/bootstrap3-dialog/), I have included Bootstrap Modal Scripts and Css in my HTML and the Bootstrap Dialog works fine. Now my question is how can I include my html code in the modal dialog. In the examples(http://nakupanda.github.io/bootstrap3-dialog/) it shows to include the HTML...

MvcSiteMapProvider - Enhanced bootstrap dropdown menu

c#,twitter-bootstrap,asp.net-mvc-5,mvcsitemapprovider,mvcsitemap
I'm trying to build a menu like this: For reference I'm using this library https://github.com/behigh/bootstrap_dropdowns_enhancement @Html.MvcSiteMap().Menu("BootstrapMenuHelperModel") @model MenuHelperModel <nav class="navbar" role="navigation"> <div class="container-fluid menu-container"> <div class="collapse navbar-collapse"> <div class="navbar-header"> <span class="navbar-brand">FAR BACKOFFICE</span> </div> <ul class="nav nav-pills"> @foreach (var node in Model.Nodes) { if...

Dynamically change a button-drop list in javascript?

javascript,jquery,twitter-bootstrap,button,drop-down-menu
Trying to create a changeable button-drop-down from Bootstrap HTML in conjunction with Javascript. The HTML looks as: <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> Menu <span class="caret"></span> </a> <ul class="dropdown-menu"> <li><a href="#">Choice1</a></li> <li><a href="#">Choice2</a></li> <li><a href="#">Choice3</a></li> <li class="divider"></li> <li><a...

Linking to a DIV inside a Bootstrap 3 accordion from another page

javascript,html,twitter-bootstrap,accordion,collapse
I saw a fantastic-looking solution to a similar question over here, but for some reason I can't seem to get the same solution to work on my page. I'm trying to create a direct link to the section, but when I type in http://www.scicoll.org/events.html#DC-GRB it doesn't seem to work. I'm...

Padding in text field. Twitter bootstrap

css,twitter-bootstrap
I am using twitter bootstrap. How i can set custom paddings in text fields? My field looks like this: but I want to make field like this: ...

How to make navbar items a fixed width in Bootstrap 3

html,css,twitter-bootstrap
I am trying to produce a Navbar similar to the one on this page : http://wrapbootstrap.com/preview/WB0375140 I am using Bootstrap 3 and can create the top corner rounded boxes with slight gradient at bottom easy enough. The thing I am struggling with is that the menu items in the navbar...

col-md-4 and col-md-8 won't float after adding a form?

html,css,twitter-bootstrap
really new to Bootstrap, so bear with me please. I am just trying it out and can't seem to get these to stay floating? I have a col-md-4 and a col-md-8 that float, but once this form is included in the col-md-4, the col-md-8 will stop floating and just be...

after puttin php syntax, my website get stuck at preloader

php,twitter-bootstrap,session
I have this code on my php file for navbar: <?php if(!$session->is_logged_in()) { echo ' <a href="login.php" role="button" aria-expanded="false"> Login <span class="label"> login to system</span> </a> </li>';} else { echo ' <a href="#!" class="dropdown-toggle" role="button" aria-expanded="false"> ' . $session->user_name; . '<span class="badge bg-default">2</span> <span class="caret"></span> <span class="label">it is you</span> </a>';...

Disabling right-click for not yet loaded content

jquery,twitter-bootstrap
I want to disable people from downloading the images from my bootstrap image gallery, but since it isn't loaded until it shows up it is still clickable. If I disable right-click for body instead of img, then it works fine.. But I don't want to disable the whole body. I'm...

Set date in bootstrap datetimepicker input

jquery,twitter-bootstrap
I used the datetimepicker from: http://eonasdan.github.io/bootstrap-datetimepicker/Installing/ There no provide how to use function (date, show, hide, etc) so I don't know how to set the value for input using datetimepicker using date function which says: date([newDate]) Takes string, Date, moment, null parameter and sets the components model current moment to...

.NET MVC: Finding default Bootsrap JavaScripts

javascript,asp.net-mvc,twitter-bootstrap
In an out-of-the-box implementation of an MVC app using Bootstrap in Visual Studio 2013, there seems to be some javasvript that works on this element: <li role="presentation" class="dropdown"> .... </li> When that element is clicked, there is, somewhere, some JavaScript that changes the class in this element to: <li role="presentation"...

Popup is not getting shown - bootstrap

jquery,twitter-bootstrap
Bootstrap popup is not showing up on click. Only "modal-open class" and "modal-backdropin" open in browser. But popup window is not showing. Here is my code <script> $(function () { $('#signup').on('click', function () { $(this).attr('data-target') ; $('#myModal').load('register.html');{ $(this).modal({ show: true }); }; }); }); </script> <a href="register.html" id="signup" data-toggle="modal" data-target="#myModal">Sign...

Loosing active class of bootstrap thumbnail when clicking any other control of the page [on hold]

jquery,css,twitter-bootstrap
Loosing css of bootstrap thumbnai link when clicking any other control or page itself CSS- a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: gray; color:#003300; background-color:#ADDEA } ...

Modal from inside Bootstrap Tabs using Knockout foreach

jquery,twitter-bootstrap,knockout.js,twitter-bootstrap-3
I have Bootstrap tabs bound to a KnockoutJS observable array using a foreach binding, which is working fine. I now want to launch a Bootstrap modal from inside the active tab. <div class="tab-content"> <!-- ko foreach: trueData --> <div class="tab-pane fade in" data-bind="css:{active: $index() == 0}, attr :{'id': 'tab' +...

Bootstrap modal - screen goes black

javascript,jquery,twitter-bootstrap,modal-dialog
I have two modals, they pop up on button click. One works fine, however for the second one, the screen just goes black and nothing happens: First, working modal: <div id="deleteConfirmation" class="hidden, modal fade"> <div class="modal-dialog"> <div class="modal-content"> <h5>Are you sure you want to delete this contact?</h5> <button id="deleteOk"> Yes...

Dropdown menu not working (tab focus)

html,css,html5,twitter-bootstrap,bootstrap
Im using a bootstrap example with a dropdown menu Here the live example: http://jsfiddle.net/p73vc8Lv/ what im trying to do is to display the dropdown menu when the user tab on the link, Im tried with css and javascript CSS: .dropdown-toggle a:focus > .dropdown-menu { display:block } is there a way...

Change active state of item list on clicking previous and next buttons using angularjs

javascript,angularjs,node.js,twitter-bootstrap
I have a list of items in my html which is rendered via hardcoded json data from the itemController. There are two buttons i.e., Previous and Next. Initially, when the page is loaded the active state i.e., blue highlighted box is marked at item1. Thats fine as its one of...

Add Badges with Item Count to my Navbar using Rails 3.2

ruby-on-rails,twitter-bootstrap,ruby-on-rails-3.2
I am looking for guidance/examples on the best way to add a badge to my <ul class = "nav navbar-nav"> I would like this badge to display the Item Count for all of the projects on the page. views/projects/index.html.erb <& @projects.each do | project | %> views/layouts/_header.html.erb <nav class="navbar navbar-inverse...

Unwanted line break between elements

css,twitter-bootstrap,bootstrap
I need to have a text input and a button using bootstrap but for some reason there's unwanted line break created between them. I'm new to bootstrap so I'm not sure what's going on. <div class="row" style="border:0px solid black"> <div class="col-xs-2 col-md-2" style="border:0px solid green"></div> <div class="col-xs-8 col-md-8" style="border:2px solid...

Bootstrap navbar toggle is not working with Laravel

jquery,html,css,twitter-bootstrap,laravel
I've following code <div class="container"> <div class="row"> <nav class = "navbar navbar-inverse navbar-fixed-top"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#topMenu" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a...

Owl Carousel implementation

jquery,twitter-bootstrap,carousel,owl
I can't use the Owl Carousel 2 I would like to use. I think it has something to do witht the files I have connected to my html but there might be a another problem. Do I even have the right files? This is my HTML so far. I already...

Any conflicts between UI-Bootstrap and Twitter Bootstrap?

angularjs,twitter-bootstrap,angular-ui-bootstrap
Are there any conflicts between Angular UI-Bootstrap and Twitter Bootstrap? I am trying to avoid using jQuery-UI with AngularJS if a more Angular-friendly UI package is available. I already started with Twitter Bootstrap, so I do not wish to unload Twitter Bootstrap....

place button next to input [closed]

html,css,twitter-bootstrap
I've got the following code: <div class="row"> <div class="col-lg-12"> <div class="form-group"> <input class="form-control"><button class="btn btn-primary">Absenden</button> </div> </div> </div> I want the button placed next to the input like it is on the following picture:...

Bootstrap switch between class when in tablet or phone viewport

css,twitter-bootstrap,twitter-bootstrap-3
I have this div: <div class="col-lg-6 col-md-6 col-sm-6"> <p class="btn-toolbar pull-right">Some Content</p> </div> I want to know if its possible when the page is in tablet mode (e.g. col-md-6) I want to change the paragraph class instead of pull-right I want to set to pull-left. Is it possible? Thanks, Laziale...

Horizontal image list modules to be used wit KO.js and Bootstrap

jquery,twitter-bootstrap,knockout.js
I'm evaluating how to implement a UI with Knockout.js and Bootstrap. Basically, what I want to achieve is a horizontal list of images, (ideally scrollable) where each image also has an information frame. The list is populated from KO-observableArray. <div data-bind="foreach: thumbnails"> <span> <a href='#' data-bind='click: select '> <img width="120"...

maxlength not working in html form input field with bootstrap

html5,forms,twitter-bootstrap,bootstrap,html-form
I am using bootstrap and currently created form with 5 tabs in it. I have a form field called layer time in which I have 3 input fields namely hours, minutes,seconds. I want to set the maxlength of 2 for each field.But it is not working when I specify it....

Bootstrap 3 col-sm-4 creates two columns instead of 3

html,css,twitter-bootstrap
Following the TutsPlus Power Up Your Portfolio With Bootstrap tutorial. Trying to implement a 3 column portfolio with Bootstrap 3's col-sm-4 class , to get something like: Instead, here is what I get: And here is what I get when I zoom out: HTML code: <!doctype html> <html class="no-js" lang="">...

how can I add a caption on hover with a img-circle image in bootstrap

javascript,jquery,html,css,twitter-bootstrap
I have a grid of responsive ing-circle link images in bootstrap which I would like to have caption appear on hover. I cannot figure out a way to do this without distorting the shape of the circular image, or have it appear outside the circle. My CSS: .pic{ -webkit-filter: saturate(50%)...

React js css transitions on class removal

twitter-bootstrap,reactjs,css-transitions
I have column that should have different width depending on some flag. I use Bootstrap, so I assign col-xs-12 and col-xs-2 depending on the flag. Now I want it to change width slowly with css transition. I've read official React.js doc about transitions, but it doesn't apply to my case:...

Fit inline elements in a row with Bootstrap

html,css,twitter-bootstrap
I'm using Bootstrap 3 to design my website and I would like to fit a text input and 3 buttons horizontally in a div. Here is my markup : <div style="width: 400px"> <input class="form-control" type="text"> <a class="btn" href="#">Button 1</a> <a class="btn" href="#">Button 2</a> <a class="btn" href="#">Button 3</a> </div> But the...

Bootstrap Glyphicons not appearing for carousel

jquery,css,twitter-bootstrap,glyphicons
For my carousel, the bootstrap glyphicons are not showing up. I made sure that I have the fonts folder. You can see a test version of the site here (redacted). Interestingly enough, the arrows appear only when I do a live preview with my web IDE (Brackets by Adobe)....

Navbar CSS not properly displaying hover functions and menu items

html,css,twitter-bootstrap,css3
Previously I have asked a question about how to make hover border appear on menu items without re sizing image here and one of the member gave me a solution which works with what I want. But recently I have been noticing a glitch in my navbar where by when...

Datepicker not showing days - Bootstrap

javascript,jquery,html,twitter-bootstrap,datepicker
I'm struggling with the answer to this, the reason I'm struggling is because the datepicker is working on one of my pages. Could an issue be that i'm loading a datatable at the same time as the datepicker? Because on the broken page, i'm loading the datatable which uses the...

Bootstrap datepicker expands up but not down

javascript,jquery,html,css,twitter-bootstrap
I am using bootstrap. When I click my date picker it expands up and goes under my navigation bar. How do I fix it? - I would like it to be expanded into visible page area. This is my html/css: <html ng-app="fly"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <link rel="stylesheet"...

Active Bootstrap Buttons

jquery,twitter-bootstrap,button
I have just been playing around with Bootstraps Button Group to show and hide div's on my webpage. Perhaps I am being dumb, but could anyone point me in the right direction for making the selected button active when clicked? HTML (Buttons): <div class="btn-group" role="group" aria-label="..."> <button id="1" type="button" class="btn...

Div bigger then Content after centering

html,css,twitter-bootstrap,bootstrap
After 1 hour of try and error and searching for problems like this, i try to get an answer here. I want to include a bootstrap Nav-Bar into a Div. I centered the Nav-Bar, but now my Div is higher then the content. This problem is only available when the...

Align column vertically with bootstrap

html,css,twitter-bootstrap,twitter-bootstrap-3,bootstrap
I have 3 columns in a row. The first and second are wider, and the third is narrower and needs to include only a buy button and the price. This is how it looks at this point: I need to align the right most column to the middle of the...

How to set CSS class in AngularJS directive and default if none set?

javascript,angularjs,twitter-bootstrap
I've created a custom directive which creates an "upload button". It has the bootstrap button CSS applied to it like so: <div class="btn btn-primary btn-upload" ng-click="openModal()"> <i class="fa fa-upload"></i> Upload </div> How do I override the CSS classes and default to btn btn-primary btn-upload if no override specified? The goal...

Rails 4 - Bootstrap and CSS not showing on production server

ruby-on-rails,twitter-bootstrap,asset-pipeline
The bootstrap and CSS work perfectly in development for our rails 4.2 app. Here is the login page in development: After deploying (ubuntu 14.1), assets are precompiled with: bundle exec rake assets:precompile RAILS_ENV=production However the bootstrap and css are completely not showing any effect on production server. Here is the...

Bootstrap navbar toggle button not collapsing

javascript,jquery,html,css,twitter-bootstrap
Important: I checked similar questions on Stack Overflow, but none seems to fix my problem: 1. I did include Bootstrap JS file. 2. It does not seem like I included JS files twice. 3. I deleted the navbar-default class because I needed to restyle it otherwise (as seen in the...

Text going out of the container div

css,twitter-bootstrap,twitter-bootstrap-3,bootstrap
the css code: #overlay { background: rgba(0,0,0,0.8); position: absolute; z-index:100; width: 100%; color:#fff; height: 100%; } the html code: <div class="container" style="border:1px solid #000;"> <div class="row"> <div class="col-md-12"> <div id="overlay">Overlay</div> Here goes the brief introduction of the company which has branded it's logo religious in almost its entire brand and...

Bootstrap 3 DatePicker - How to reset selected date without resetting the picker configuration?

jquery,twitter-bootstrap,datepicker
I'm trying to reset the selected date on button click, but so far I'm only able to clear the input element, without the actual date on the picker. The following code resets everything, including the configuration and the date, so its obviously not what I need. $('#datepicker').datepicker('update',''); //resets everything To...

Bootstrap toggle doesn't display well when added dynamically

javascript,jquery,twitter-bootstrap
I'm trying to add bootstrap toggle switch dynamically but it does not display well after adding it. Thanks for your help! <input id="TheCheckBox" type="checkbox" data-off-text="Yes" data-on-text="No" checked="false" class="BSswitch"> <p> <a class="btn btn-lg btn-primary" href="#">Display another Toggle</a></p> $('.btn').on('click', function () { $('p').after( '<input id="TheCheckBox" type="checkbox" data-off-text="Male" data-on-text="Female" checked="false" class="BSswitch">' ); });...

How to update the value of data attribute using jquery

javascript,jquery,twitter-bootstrap
I have the following bootstrap data toggle markup and I want to change the icon and the text to change on toggle. I can get the text to change but not the icon. What I'm I doing wrong? <div id="collapseDiv" > <dl> <dt>...</dt> <dd>...</dd> </dl> </div> <a href="#collapseDiv" data-toggle="collapse" class="icon-before"...

Responsive background with its height based on the adjacent column using bootstrap

css,twitter-bootstrap
How can I have a full image background inside a column but without knowing the height of it? Im using bootstrap and I need the image to be responsive. Please look at the image for a better understanding <div class=" col-xs-12 col-sm-5 col-md-5 col-lg-4 bgimage"> </div> <div class=" col-xs-12 col-sm-7...

horizontally align image/content with media query

css,twitter-bootstrap,media-queries
I have a row of images with title and descriptions, that when the window is downsized to 991px or fewer in width, the list should be vertical, with the title and description to the right of the image, not below it. <div class="row"> <div class="col-md-2"> <img src="http://placehold.it/150x150"> <h5 class="story-title">Title of...

RequiredFieldValidator not working in my ASp site

c#,css,asp.net,twitter-bootstrap
I'm trying to learn some C# & asp, while creating a booking page in Visual Studio. I have faced a little problem with the RequiredFieldValidator, because when i click the button, nothing happens. I'm using the bootstrap css files to make in a little more shiny. Some code of the...

How to fit the title to the entire page

html,css,twitter-bootstrap
I'm trying to fit this title to the entire page. For some reason, there is a padding around the text that's not allowing me to fit it. I set the padding of the column (Bootstrap) to 0, but that doesn't seem to help. As soon as I increase the font-size...

Bootstrap dropdown on hover not working, what am I doing wrong?

javascript,jquery,twitter-bootstrap
I am trying to open a dropdown on hover in Bootstrap but somehow it's not working. I suspect that my jQuery code is wrong but I can't figure out what? Here is my HTML: <a href="#" id="dropdown-filter" data-target="#" data-toggle="dropdown"> <button type="button" class="btn btn-primary">Filters</button> </a> <ul class="dropdown-menu pull-right" role="menu"> <li> <div...

how to make horizontal list of boostrap 3 panels responsive

css,twitter-bootstrap,bootstrap
I m using boostrap 3 and struggling to make a horizontal list of panels responsive. My html is as below. It renders fine in all browsers but on mobile resolution the text is not responsive. Any ideas what I m missing? thanks <body> <div class="container"> <div class="row"> <div class="col-xs-2"> <div...

Remove weird space bootstrap

html,css,twitter-bootstrap
I want to remove some weird bottom space from the following markup: .container { border: 1px solid blue; } img { border: 1px solid red; height: 100%; width: 100%; } /** * Bootstrap */ .container { margin-left: auto; margin-right: auto; padding-left: 15px; padding-left: .833333rem; padding-right: 15px; padding-right: .833333rem; } @media...

Bootstrap dropdown selection makes screen jump

javascript,html,css,twitter-bootstrap,drop-down-menu
So I'm using bootstrap for my website and I have many div's on each page with a dropdown on each that change the information inside the div from a chart to a table and vise-versa. This works fine except when the user selects an option from the drop down the...

adding background image in style rails 4

ruby-on-rails,twitter-bootstrap,ruby-on-rails-4,asset-pipeline
I am trying to add background image on my web page, it was working when I was using plane html, but now I am integrating it to my rails application. I am using this code to embed the image in my rails application <div class="jumbotron" style="background-image: "url(image-url('lines3.png')"; background-repeat: repeat-x; background-position:...

Bootstrap modal background changes its transparency

javascript,jquery,html,css,twitter-bootstrap
I have simple login form that is inside Bootstrap modal. Sometimes, launching this modal gives me completely black background, but in settings I have opacity 0.5 or something. When I refresh page and relaunch modal it works just fine again. My modal: <div class="modal fade" id="required_authentication" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">...

Calling AngularJS function from a remote page loaded by Bootstrap modal

javascript,angularjs,twitter-bootstrap
I use Bootstrap 3 modal component to load a remote form, in which I define an Angular controller and several functions. But the browser said "Tried to Load Angular More Than Once". Main page: (omitted: ng-app="manageAppCollections", ng-controller="manageAppController") <button type="button" class="btn btn-success" ng-href="./appConfForm" data-toggle="modal" data-target="#saveModal">Add an App</button> <div id="saveModal" class="modal inmodal...

Bootstrap 'form-group has-error' not working with php codes [closed]

php,html,twitter-bootstrap
Inputs don't turn red and does not print the error messages when I'm submitting empty fields. How can I show the error messages and make the input boxes turn red when I'm sending empty fields with this code. <?php if ( !empty($_POST)) { require 'db.php'; // validation errors $fnameError =...

bootstrap mulitple nav tabs for tab content

javascript,jquery,html,css,twitter-bootstrap
im trying to create a type of pagination for bootstrap tab, i figured an easy approach would be to create two nav tabs with html and then try to style the second nav up to look like the carousel pagination. However im currently having problems trying to implement it so...