vertical-align: middle with Bootstrap 2

Try this: .row > .span3 { display: inline-block !important; vertical-align: middle !important; } Edit: Fiddle: http://jsfiddle.net/EexYE/ You may need to add Diego’s float: none !important; also if span3 is floating and it interferes. Edit: Fiddle: http://jsfiddle.net/D8McR/ In response to Alberto: if you fix the height of the row div, then to continue the vertical center … Read more

Twitter Bootstrap / jQuery – How to temporarily prevent the modal from being closed?

Note: This solution is targeting twitter bootstrap 2.x! See this answer (just below) for differences according to bootstrap 3. Extending bootstrap modal functionality without modifying original source. Thanks to @David and his suggestion at How to Extend Twitter Bootstrap Plugin I finally got it to work. It is a slightly modified version of his solution … Read more

How to achieve a “mini” select style using Bootstrap (or straight CSS)?

Just in case any Bootstrap 3 users come across this old question, here’s the BS3 way: <select class=”form-control input-lg”></select> <select class=”form-control”></select> <select class=”form-control input-sm”></select> <input class=”form-control input-lg”> <input class=”form-control”> <input class=”form-control input-sm”> There is no input-xs, though, so you’d have to make that yourself if you wanted smaller. .input-xs, select.input-xs { height: 20px; line-height: 20px; … Read more

Is it possible to render indeterminate progress bar with Twitter Bootstrap?

In bootstrap 2: <link href=”https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css” rel=”stylesheet” /> <div class=”progress progress-striped active”> <div class=”bar” style=”width: 100%;”></div> </div> In bootstrap 3: <link href=”https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css” rel=”stylesheet”/> <div class=”progress progress-striped active”> <div class=”progress-bar” role=”progressbar” aria-valuenow=”100″ aria-valuemin=”0″ aria-valuemax=”100″ style=”width: 100%”> </div> </div> In bootstrap 4: <link rel=”stylesheet” href=”https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css”> <div class=”progress”> <div class=”progress-bar progress-bar-striped progress-bar-animated” role=”progressbar” aria-valuenow=”75″ aria-valuemin=”0″ aria-valuemax=”100″ style=”width: 100%”></div> </div>

GLYPHICONS – bootstrap icon font hex value

We can find these by looking at Bootstrap’s stylesheet, Bootstrap.css. Each \{number} represents a hexadecimal value, so \2a is equal to 0x2a or &#x2a;. As for the font, that can be downloaded from http://glyphicons.com. .glyphicon-asterisk:before { content: “\2a”; } .glyphicon-plus:before { content: “\2b”; } .glyphicon-euro:before { content: “\20ac”; } .glyphicon-minus:before { content: “\2212”; } .glyphicon-cloud:before … Read more

How to line up labels and read-only fields in a Bootstrap 2 form

You can use the uneditable input <span class=”input-xlarge uneditable-input”>Lorem Ipsum and then some</span> EDIT: As of bootstrap 3.0 a class has been added to handle this When you need to place regular, static text next to a form label within a horizontal form, use the .form-control-static class on a <p> <div class=”controls”> <p class=”form-control-static”>Lorem Ipsum … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)