twitter-bootstrap

How to make bootstrap icon display inline with text in a tag?

可紊 提交于 2020-05-10 07:33:39
问题 I have bootstrap navigation pill that shows text and an arrow. Unfortunately if the text is to long the arrow appears on the border of the anchor. Html looks like this. <a href="#"> <span> Some longer sample text</span> <i class="pull-right icon-chevron-right"></i> </a> Demo is here: http://jsfiddle.net/kyrisu/FNcGX/ How can I display it inline with the block of text (text can/should wrap)? 回答1: If your text can wrap as you said then this can work.. <span><i class="pull-right icon-chevron

How can I move a div from top to bottom on mobile layouts? [duplicate]

牧云@^-^@ 提交于 2020-05-10 04:46:01
问题 This question already has answers here : Change div order with CSS depending on device-width (1 answer) How can I reorder my divs using only CSS? (24 answers) How to change order of divs on smaller screens? (1 answer) Closed 9 months ago . I am using Bootstrap 4, but if it works on version 3, it should work on v4. I have 2 divs within a column like so: <div class="row"> <div class="col-xs-12"> <div>TOP ON DESKTOP, BOTTOM ON MOBILE</div> <div>BOTTOM ON DESKTOP, TOP ON MOBILE</div> </div> </div

Bootstrap navbar-toggler-icon not visible but functioning normally [duplicate]

拥有回忆 提交于 2020-05-08 06:32:46
问题 This question already has an answer here : Bootstrap navbar: nothing is displayed on smaller devices (1 answer) Closed 19 days ago . I am trying to get my bootstrap navbar implemented into my handlebars layout file. I've noticed some weird things happening with bootstrap and this is no exception. Once I shrink my window to a size where the navbar-toggler-icon should show, it is not visible, but it is still functioning there like it should, I just can't see it. Here is my entire layout.hbs

Django base.html extended to homepage.html, static images appear, but home.css does not works

巧了我就是萌 提交于 2020-05-08 06:03:28
问题 Problem : As the title says I am building a django project the base.html extended to homepage.html and works fine, static images appear, but home.css does not works anywhere. Update I have switched in the base.html from this <link rel="stylesheet" href="{% static 'css/home.css' %}"> to this <link href="css/home.css" rel="stylesheet" /> than I have also tried this: <link rel="stylesheet" type="text/css" href="{% static 'css/home.css' %}" /> It deletes a formatting on -s that was caused by

Django base.html extended to homepage.html, static images appear, but home.css does not works

感情迁移 提交于 2020-05-08 06:02:22
问题 Problem : As the title says I am building a django project the base.html extended to homepage.html and works fine, static images appear, but home.css does not works anywhere. Update I have switched in the base.html from this <link rel="stylesheet" href="{% static 'css/home.css' %}"> to this <link href="css/home.css" rel="stylesheet" /> than I have also tried this: <link rel="stylesheet" type="text/css" href="{% static 'css/home.css' %}" /> It deletes a formatting on -s that was caused by

Django base.html extended to homepage.html, static images appear, but home.css does not works

久未见 提交于 2020-05-08 06:02:18
问题 Problem : As the title says I am building a django project the base.html extended to homepage.html and works fine, static images appear, but home.css does not works anywhere. Update I have switched in the base.html from this <link rel="stylesheet" href="{% static 'css/home.css' %}"> to this <link href="css/home.css" rel="stylesheet" /> than I have also tried this: <link rel="stylesheet" type="text/css" href="{% static 'css/home.css' %}" /> It deletes a formatting on -s that was caused by

Datatables and bootstrap tooltips

人盡茶涼 提交于 2020-04-29 09:37:59
问题 I am adding Datatables to my Rails app. I have it working for the most part but I am stuck on a CSS / jQuery issue. I have a row cell defined as follows: content_tag(:abbr, "#{record.od} mm", data: { container: 'body', toggle: 'tooltip', placement: 'bottom', html: 'true' }, title: 'test' ) which renders: <abbr data-container="body" data-toggle="tooltip" data-placement="bottom" data-html="true" title="test">88.9 mm</abbr> In a non-datatable table the bootstrap tooltip works fine but fails on

Datatables and bootstrap tooltips

你说的曾经没有我的故事 提交于 2020-04-29 09:36:29
问题 I am adding Datatables to my Rails app. I have it working for the most part but I am stuck on a CSS / jQuery issue. I have a row cell defined as follows: content_tag(:abbr, "#{record.od} mm", data: { container: 'body', toggle: 'tooltip', placement: 'bottom', html: 'true' }, title: 'test' ) which renders: <abbr data-container="body" data-toggle="tooltip" data-placement="bottom" data-html="true" title="test">88.9 mm</abbr> In a non-datatable table the bootstrap tooltip works fine but fails on

Bootstrap 4 - “Complete JavaScript” vs “Complete JavaScript Bundle”

懵懂的女人 提交于 2020-04-29 06:48:19
问题 What am I missing? The examples use min.js. The bundle.min.js has more code, but I can't find a description of that extra code... https://getbootstrap.com/docs/4.0/getting-started/download/ Code: https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js vs https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js 回答1: As shown in the docs, the "bundle" includes popper.js for you, the other does not. 来源: https://stackoverflow.com/questions/48713215/bootstrap-4

Need a input type for duration

巧了我就是萌 提交于 2020-04-17 22:52:59
问题 I need to ask the user for a duration in a html input. f.e. 03h 12m 12s Is there any way to give him a selection, like input type date? I use Bootstrap 4. Thank you 回答1: <input type='number'> set min and max Demo input, label { font: inherit; width: 4ch; } <form id='duration'> <input id='h' name='h' type='number' min='0' max='24'> <label for='h'>h</label> <input id='m' name='m' type='number' min='0' max='59'> <label for='m'>m</label> <input id='s' name='s' type='number' min='0' max='59'>