How to make a table column be a minimum width

There is a trick that involves setting some cells to a very small width, and then applying a white-space: nowrap property: <table> <tr> <td class=”min”>id</td> <td class=”min”>tiny</td> <td>Fills space</td> <td>Fills space</td> <td class=”min”>123</td> <td class=”min”>small</td> <td>Fills space, wider</td> <td>Fills space</td> <td class=”min”>thin</td> </tr> </table> td { width: auto; } td.min { width: 1%; white-space: nowrap; … Read more

Twitter-Bootstrap-2 logo image on top of navbar

You have to also add the “navbar-brand” class to your image a container, also you have to include it inside the .navbar-inner container, like so: <div class=”navbar navbar-fixed-top”> <div class=”navbar-inner”> <div class=”container”> <a class=”navbar-brand” href=”https://stackoverflow.com/questions/9893723/index.html”> <img src=”images/57x57x300.jpg”></a> </div> </div> </div>

Change the color of glyphicons to blue in some- but not at all places using Bootstrap 2

The icon will adopt the color from value of the color css property of it’s parent. You can either add this directly to the style: <span class=”glyphicon glyphicon-user” style=”color:blue”></span> Or you can add it as a class to your icon and then set the font color to it in CSS HTML <span class=”glyphicon glyphicon-search”></span> <span … Read more

Getting rid of all the rounded corners in Twitter Bootstrap

I set all element’s border-radius to “0” like this: * { border-radius: 0 !important; } As I’m sure I don’t want to overwrite this later I just use !important. If you are not compiling your less files just do: * { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } In bootstrap 3 if … Read more

How can I change the default width of a Twitter Bootstrap modal box?

UPDATE: In bootstrap 3 you need to change the modal-dialog. So in this case you can add the class modal-admin in the place where modal-dialog stands. Original Answer (Bootstrap < 3) Is there a certain reason you’re trying to change it with JS/jQuery? You can easily do it with just CSS, which means you don’t … Read more

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