glyphicons

Cannot view the source image file on a website

风流意气都作罢 提交于 2019-12-01 05:47:36
http://www.wordherd.co/#features On this site, when I try to look at the source image file of any of the icons (like "Directions") using Firebug, it displays some sort of unicode for the content. How do you get to the source image files? I'm trying to understand the hack they are using to prevent the images from being accessible. Josh Crozier These "images" are icons fonts. They are usually added via :before / :after pseudo elements. In this instance, the content value is an ASCII representation of an external font library character. .icon-flag:before { content: "\f024"; } In order for this to

Cannot view the source image file on a website

老子叫甜甜 提交于 2019-12-01 02:52:57
问题 http://www.wordherd.co/#features On this site, when I try to look at the source image file of any of the icons (like "Directions") using Firebug, it displays some sort of unicode for the content. How do you get to the source image files? I'm trying to understand the hack they are using to prevent the images from being accessible. 回答1: These "images" are icons fonts. They are usually added via :before / :after pseudo elements. In this instance, the content value is an ASCII representation of

Bootstrap css use only glyphicons

僤鯓⒐⒋嵵緔 提交于 2019-11-30 12:43:39
问题 We have a project in late development stage. It has its own css files, with many, many classes and what not in it. Original developer of that css is not available any more. We just kept adding our classes and styles to a single file. There is a need for a nice icon set, and bootstrap has exactly what we need. I tried including bootstrap to our project already, but it is a mess when I do that. Everything is clashing I suppose. Is there a way to include something like minimalist bootstrap that

Glyphicons no longer supported in Bootstrap 4

时光总嘲笑我的痴心妄想 提交于 2019-11-30 09:58:09
问题 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: 1 - Wich is a

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

六月ゝ 毕业季﹏ 提交于 2019-11-30 07:10:59
问题 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! 回答1: 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

Bootstrap 3 Placing Icon inside input field

亡梦爱人 提交于 2019-11-30 06:59:06
I am working in Bootstrap 3 and am trying to get a calendar icon inside the right hand side of the input box. My html looks like this: <div class="col-md-12"> <div class='right-inner-addon col-md-2 date datepicker' data-date-format="yyyy-mm-dd"> <input name='name' value="" type="text" class="form-control date-picker" data-date-format="yyyy-mm-dd"/> <i class="fa fa-calendar"></i> </div> </div> I have tried position: absolute like this: .right-inner-addon i { position: absolute; right: 5px; top: 10px; pointer-events: none; font-size: 1.5em; } .right-inner-addon { position: relative; } But when I

How do I center Glyphicons horizontally using Twitter Bootstrap

◇◆丶佛笑我妖孽 提交于 2019-11-30 03:15:52
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. Enim, natus necessitatibus pariatur optio explicabo consequuntur quod!</p> </div> <div class="col-lg-4">

Bootstrap css use only glyphicons

你说的曾经没有我的故事 提交于 2019-11-30 02:58:01
We have a project in late development stage. It has its own css files, with many, many classes and what not in it. Original developer of that css is not available any more. We just kept adding our classes and styles to a single file. There is a need for a nice icon set, and bootstrap has exactly what we need. I tried including bootstrap to our project already, but it is a mess when I do that. Everything is clashing I suppose. Is there a way to include something like minimalist bootstrap that includes only glyphicons classes? Simply go to Bootstrap's Customization page at http://getbootstrap

Bootstrap 3 Tooltip over Glyphicon

◇◆丶佛笑我妖孽 提交于 2019-11-30 01:26:28
Not sure if this even possible, I am trying to invoke a tooltip over a glyphicon inside an input group, my code (which does not work) is; <div class="input-group"> <input type="text" class="form-control" name="security" id="security"><span class="input-group-addon"><span class="glyphicon glyphicon-info-sign" data-toggle="tooltip" data-container: 'body' title="" data-original-title="Security Code"></span></span> </div> I'm using Bootstrap 3, and the latest version of jQuery. You can get a simple tooltip over the glyphicon using the title attribute (which is blank in your example). title="info"

Font Awesome vs Glyphicons in Twitter Bootstrap

北城余情 提交于 2019-11-29 20:32:31
I am a beginner in web development and I recently started working with Twitter Bootstrap, I know it uses Glyphicons which I already know how to use. But I also came across Font Awesome which says that it is built for Bootstrap. What are the differences between the two? I mean is one an alternative for the other? Or should you use them in different places? In Bootstrap 2.x.x Glyphyicons were in image format, hence you can't increase the size, change the color, background-color, etc easily. However, font-awesome gives you scalable vector icons that can instantly be customized — size, color, drop