twitter-bootstrap-2

align twitter bootstrap progress bar and badge

别等时光非礼了梦想. 提交于 2019-12-10 14:18:11
问题 I am using twitter bootstrap for my site. I would like to use progress bar to indicate the percentage completion of the process. In the progress bar I want to display the name the step in process and use a badge either at the end or start of progress bar to display the percent complete. Here is the JS fiddle link for what I am trying to do http://jsfiddle.net/KBTy7/12/ <div id="coolstuff" style="margin-top: 10px;"> <span class="badge" style="padding: 3px; width: 10px">10%</span> <div class=

How to change the bootstrap caret pointing direction on click event

纵饮孤独 提交于 2019-12-09 06:17:25
问题 I'm using 2.3.2 bootstrap As I can change the position of the caret icon when I click the menu button. I need that when I click the icon caret pointing up and when you click on another item the caret back to the initial state. How is this possible? The nav code <div id="navi"> <div class="container"> <nav> <div class="navbar"> <div class="navbar-inner"> <div class="row"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"><

Padding In bootstrap

断了今生、忘了曾经 提交于 2019-12-08 16:37:53
问题 Im using bootstrap: <div id="main" class="container" role="main"> <div class="row"> <div class="span6"> <h2>Welcome</h2> <p>Hello and welcome to my website.</p> </div> <div class="span6"> Image Here (TODO) </div> </div> Main also has a grey background. The background of the page is white. The problem I am having is that the text is right to the edge of the grey background. I want some padding but when I add it in, the image span goes to the next line. Any ideas where I'm going wrong? 回答1: I

Remove Glyphicons from Bootstrap

倖福魔咒の 提交于 2019-12-06 03:25:10
问题 How can I remove all instances of glyphicons from the bootstrap 3? It looks like it's heavily embedded into the .css file :( I'm trying to keep the file size minimum as possible. 回答1: I'm going to assume that you're not building Bootstrap with the LESS or SASS code base and are downloading the whole library pre-built. If so, go to Bootstrap's customize page and uncheck any components that you don't want, i.e. Glyphicons, then download the new source. A lot of the online font library tools, I

twitter bootstrap and canvas positioning

血红的双手。 提交于 2019-12-06 01:45:05
i am trying to use twitter bootstrap in one of my projects and what i really want is a header with link and a HTML canvas in the middle of the page. Reference: When I add a html canvas tag and give it a width and height I get two undesirable effects: the upper border of the canvas is cutoff and have to apply margin to the canvas the canvas is pushed to the right and again i have to apply margin to it. I'd like the canvas to stay at the center of the page. In order to keep your canvas element in the center of the screen you will have to wrap it with a containing div as follows. <div> <canvas><

Bootstrap modal in Liferay

一世执手 提交于 2019-12-05 09:57:49
I use Bootstrap 2.3.2 and Liferay 6.2 bundled with Tomcat. I have some modal windows with complex body structure created in Bootstrap 2.3.2 and I would like to use them in my portal. Here is said that Liferay uses Bootstrap 2.3.2 css, but not Bootstrap 2.3.2 javascript and components like modals, tooltips, tabs, ... are included in AlloyUI. I included Bootstrap 2.3.2 javascript and tried to use my modal windows, but if I want to show a modal window it doesn't appear. I would like to ask, how can i show native bootstrap modals in Liferay. The reason that your modal is not appearing is most

What is the difference between bootstrap.css and bootstrap-combined.min.css?

可紊 提交于 2019-12-05 09:47:37
问题 I am using bootstrap.css and I found that there is another css file named bootstrap-combined.min.css , is there any difference in style? Is there any need to include both css files? Which one is more preferable? 回答1: The file bootstrap-combined.min.css is for Bootstrap v2, it is the combined css file of bootstrap.css (the main css file) and bootstrap-responsive.css (the responsive Bootstrap styles). It's exactly the same as using those two files separately but it just saves you an extra

How do you disable the title in Twitter Bootstrap's popover plugin?

扶醉桌前 提交于 2019-12-05 09:16:37
问题 I'm using popover to display an image which doesn't require a title. If you don't set "title", it still displays an area where the title would be. How do you turn this off completely? 回答1: baptme's suggest is ok, but the better way would be to specify your popover's title and actually hide it completely as margins still exist with a height of 0. .popover-title { display: none; } Edit: just quicky looked at the source and there seems to be an undocumented option: $.fn.popover.defaults = $

Bootstrap horizontal form “control-label” not using responsive styling

不羁岁月 提交于 2019-12-05 01:22:34
问题 I'm using the "form-horizontal" class with Bootstrap 2, but my labels don't seem to be utilizing the Responsive styling. This is what it looks like: When I examine it, it specifically has "width:160px" on the label, which is the regular Bootstrap setting, but the Responsive styling just has "width:auto". My HTML for that section looks like this: <form id="addproject" class="form-horizontal"> <div class="control-group"> <label for="title" class="control-label">Title</label> <div class=

Remove Glyphicons from Bootstrap

萝らか妹 提交于 2019-12-04 07:32:45
How can I remove all instances of glyphicons from the bootstrap 3? It looks like it's heavily embedded into the .css file :( I'm trying to keep the file size minimum as possible. I'm going to assume that you're not building Bootstrap with the LESS or SASS code base and are downloading the whole library pre-built. If so, go to Bootstrap's customize page and uncheck any components that you don't want, i.e. Glyphicons, then download the new source. A lot of the online font library tools, I like to use Fontello myself, will allow you to select just the icons you want and create an icon font from