twitter-bootstrap

Table cell width with bootstrap

本秂侑毒 提交于 2021-02-07 05:11:10
问题 I have a simple table with two columns, I would like the to set the width of each of these columns, for example left column 30% right column 70%. Eventually I will have hundreds of rows so If I can apply a global css class I guess that would be best? Currently the left column is compressed and doesn't look good. I have created a jsfiddle if somebody could lend some assistance. <div class="container"> <div class="row col-md-8"> <table class="table table-striped"> <tr> <td>row name here</td>

Table cell width with bootstrap

给你一囗甜甜゛ 提交于 2021-02-07 05:10:24
问题 I have a simple table with two columns, I would like the to set the width of each of these columns, for example left column 30% right column 70%. Eventually I will have hundreds of rows so If I can apply a global css class I guess that would be best? Currently the left column is compressed and doesn't look good. I have created a jsfiddle if somebody could lend some assistance. <div class="container"> <div class="row col-md-8"> <table class="table table-striped"> <tr> <td>row name here</td>

Table cell width with bootstrap

我只是一个虾纸丫 提交于 2021-02-07 05:09:55
问题 I have a simple table with two columns, I would like the to set the width of each of these columns, for example left column 30% right column 70%. Eventually I will have hundreds of rows so If I can apply a global css class I guess that would be best? Currently the left column is compressed and doesn't look good. I have created a jsfiddle if somebody could lend some assistance. <div class="container"> <div class="row col-md-8"> <table class="table table-striped"> <tr> <td>row name here</td>

Using flexbox sticky footer with bootstrap

ε祈祈猫儿з 提交于 2021-02-06 20:44:10
问题 I'm trying to use this sticky footer: http://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/ body{ display: flex; min-height: 100vh; flex-direction: column; } .content{ flex: 1; } But it messes up the rendering at the < 768px widths. Any simple css fix to get it work for all resolutions? http://jsfiddle.net/2xvv5mod/ 回答1: You need to give the flexbox item a width of 100% . In this case, that would be that .content element: Updated Example body { display: flex; min-height: 100vh;

Using flexbox sticky footer with bootstrap

醉酒当歌 提交于 2021-02-06 20:43:46
问题 I'm trying to use this sticky footer: http://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/ body{ display: flex; min-height: 100vh; flex-direction: column; } .content{ flex: 1; } But it messes up the rendering at the < 768px widths. Any simple css fix to get it work for all resolutions? http://jsfiddle.net/2xvv5mod/ 回答1: You need to give the flexbox item a width of 100% . In this case, that would be that .content element: Updated Example body { display: flex; min-height: 100vh;

Bootstrap css, how to make always visible navbar-toggle?

我的未来我决定 提交于 2021-02-06 15:24:46
问题 I'd like to add one of those buttons that are shown when on mobile device in order to open the collapsed menu in the navbar, but haven't been able so far, here's the less code and html .navbar-toggle-always{ .navbar-toggle; @media (min-width: 768px){ display: block!important; } .zero-margins; } html <div class="pull-left "> <button type="button" class="navbar-toggle-always collapsed" data-toggle="collapse" data-target="#left" aria-expanded="false" aria-controls="navbar"> <span class="icon-bar

Bootstrap css, how to make always visible navbar-toggle?

你离开我真会死。 提交于 2021-02-06 15:21:16
问题 I'd like to add one of those buttons that are shown when on mobile device in order to open the collapsed menu in the navbar, but haven't been able so far, here's the less code and html .navbar-toggle-always{ .navbar-toggle; @media (min-width: 768px){ display: block!important; } .zero-margins; } html <div class="pull-left "> <button type="button" class="navbar-toggle-always collapsed" data-toggle="collapse" data-target="#left" aria-expanded="false" aria-controls="navbar"> <span class="icon-bar

Accessibility: sr-only or aria-label

雨燕双飞 提交于 2021-02-06 14:53:31
问题 From MDN: In the example below, a button is styled to look like a typical "close" button, with an X in the middle. Since there is nothing indicating that the purpose of the button is to close the dialog, the aria-label attribute is used to provide the label to any assistive technologies. <button aria-label="Close" onclick="myDialog.close()">X</button> According to the Bootstrap Documentation: Hide an element to all devices except screen readers with .sr-only So I guess I could also write:

Autoplay video in Bootstrap modal window on modal opening

我是研究僧i 提交于 2021-02-06 12:53:33
问题 I have a Bootstrap 3.3.7 modal window which contains a video using the HTML5 video tag, e.g. <video controls autoplay> <source src="video.mp4" type="video/mp4"> Your browser does not support the video tag. </video> The trouble with this is that when my web page loads, the video starts playing (even though it cannot be "seen" since the modal is closed, the audio also plays). I understand that the autoplay tag is doing this. But how can I get the video to autoplay when the modal is loaded? And

Bootstrap uncollapsed panel by default

旧街凉风 提交于 2021-02-06 06:30:51
问题 I have a collapsable panel but I want it to be uncollapsed by default. <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" href="#collapse1"> <span class="glyphicon glyphicon-collapse-down"> </span>1st Round</a> </h4> </div> <div id="collapse1" class="panel-collapse collapse"> <div class="panel-body">First round details</div> </div> </div> If I remove collapse from <div id="collapse1" class="panel-collapse collapse"> It works, but