glyphicons

How to add glyphicons to rails link_to helper - Bootstrap 3

落爺英雄遲暮 提交于 2019-11-29 20:16:09
I've been looking everywhere for a good explanation of how to add glyphicons to rails link_to and button_to helpers, but I've found very little. What I've gathered so far has led me to this: <li> <%= link_to deals_path, class: "btn btn-default" do %> <%= content_tag(:i, "Dasboard",:class=>' glyphicon, glyphicon-th-large') -%> <% end %> </li> This doesn't work though and I think the one example I found was from Bootstrap 2. Can anyone point me to a good resource on this, or provide a quick example? Thanks in advance! settheline I found the answer to this here The basic form of a glyph link in

Glyphicons no longer supported in Bootstrap 4

随声附和 提交于 2019-11-29 17:55:53
I've read, from official docs, that Glyphicons were dropped from Bootstrap 4. Today, in my searching for implementing checbox button, I've found one snippet that I appreciate very much: Snippet for Checkbox 3.0 The problem is that this version is for Bootstrap 3.0, where Glyph were supported yet. So I've 2 question: Wich is a good alternative to Glyphicons? Or there is a way to use them yet? How I may change the html and js snippet above to make it working wuth Bootstrap 4? 1 - Wich is a good alternative to Glyphicons? Or there is a way to use them yet? The best alternative IMHO: http:/

Glyphicons rendering as empty box

风格不统一 提交于 2019-11-29 03:13:22
I'm using the excellent Twitter bootstrap library with Glyphicons, however all the icons are rendering as empty squares, like so: I've uploaded the Glyphicons fonts to my web root and changed the bootstrap.css file to point to their correct locations, which I've verified because they have 200 OK requests in Chrome's dev tools: This is the markup I'm using: <a href="http://www.mysite.com/download" class="btn btn-primary"><span class="glyphicon glyphicon-star"></span> Download to Computer</a> Any ideas why the font may be rendering as empty boxes? Previous answers on StackOverflow all point to

Bootstrap 3: Can the Glyphicons be stacked like Font Awesome's icons?

孤街醉人 提交于 2019-11-29 01:52:09
Is it possible to "stack" the default glyphicons using Bootstrap like you can with Font Awesome's icons? Can Glyphicons do this: http://fortawesome.github.io/Font-Awesome/examples/#stacked or do I have to do custom coding? Thanks! Bootstrap's CSS for Glyphicons don't have classes to stack. You could apply the classes from your example code: http://bootply.com/88775 css .icon-stack { display: inline-block; height: 2em; line-height: 2em; position: relative; vertical-align: -35%; width: 2em; } .icon-stack .icon-stack-base { font-size: 2em; } .icon-stack [class^="icon-"], .icon-stack [class*="

How do I center Glyphicons horizontally using Twitter Bootstrap

我怕爱的太早我们不能终老 提交于 2019-11-29 00:51:54
问题 I am trying to center my FontAwesome icons inside my Twitter Bootstrap code. This is my HTML: <div id="frontpage-content" class="content"> <div class="container"> <div class="row"> <div class="col-lg-4"> <span> <i class="fa fa-camera-retro fa-5x"></i> </span> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Pariatur, inventore, ipsa dolorum laborum sit alias iusto nam quibusdam ad distinctio rerum expedita autem itaque delectus iste mollitia perferendis sint libero accusamus in.

How do I change Bootstrap 3's glyphicons to white? [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-11-28 22:13:29
This question already has an answer here: Can I add color to bootstrap icons only using CSS? 14 answers I've got the glyphicons in my page, but they are black. How do I set the glyphicons to white? You can just create your own .white class and add it to the glyphicon element. .white, .white a { color: #fff; } <i class="glyphicon glyphicon-home white"></i> 来源: https://stackoverflow.com/questions/18070322/how-do-i-change-bootstrap-3s-glyphicons-to-white

Twitter bootstrap glyphicons do not appear in release mode 404

夙愿已清 提交于 2019-11-28 20:54:04
问题 I`m working on a project in ASP.NET MVC 4 and I did following steps: Downloaded twitter bootstrap from http://blog.getbootstrap.com/2013/12/05/bootstrap-3-0-3-released/ Set Build action on font files to Content (files are located in ~/Content/font folder) glyphicons-halflings-regular.eot glyphicons-halflings-regular.svg glyphicons-halflings-regular.ttf glyphicons-halflings-regular.woff Added to RouteConfig.cs routes.IgnoreRoute("{folder}/{*pathInfo}", new { folder = "Content" }); Added

how to flip glyphicon icon

扶醉桌前 提交于 2019-11-28 20:06:31
Is there any way to flip glyphicon. I found Flip an Image css trick, but that does not work for glyphicon. Please any suggestions Falguni Panchal Like this HTML <a href="#" class="btn"><i class="icon-rotate icon-flipped"></i></a> CSS .icon-flipped { transform: scaleX(-1); -moz-transform: scaleX(-1); -webkit-transform: scaleX(-1); -ms-transform: scaleX(-1); } OR http://fortawesome.github.io/Font-Awesome/examples/#rotated-flipped Using glyphicons managed to make this work like so: HTML <span class="glyphicon glyphicon-search" id="my-glyphicon"></span> CSS #my-glyphicon { -moz-transform: scaleX(

bootstrap 3.2.0 glyphicons are not displaying in internet explorer

江枫思渺然 提交于 2019-11-28 18:46:10
I am useing twitter bootstrap 3.2.0 and I use some glyphicons they work properly in ff, chrome, and opera but they are not displayed within the Internet Explorer. The strange thing is, if i open the getbootstrap.com website and look at the "Components" section, even there they aren't displayed properly, so I doubt any implementing issues on my side. Does anybody else have a similiar issue?? Or is knowing something about this behaviour? Here is a Scrennshot of how it looks in my Internet Explorer 11 http://we.tl/nsDnTiZqoZ Ok, solved the Problem by myself. The Problem was, that somehow my IE

Center Twitter Bootstrap 3 Glyphicons in buttons

。_饼干妹妹 提交于 2019-11-28 18:33:55
I am now using Twitter Bootstrap 3 RC2 as well as Twitter Bootstrap which has moved into a separate repository. I have noticed, if used in a button with text the icon is not centered very well: The icon and the text have the same bottom line, but I believe for a good looking button the icon should be centered based on the text, shouldn't it? Any idea how to achieve this? http://bootply.com/74652 Russ Cam Move the text out of the <span> with the glyphicon and apply vertical-align: middle; to the <span> <button class="btn btn-default"> <span class="glyphicon glyphicon-th" style="vertical-align: