Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Bootstap Icons

Posted on 2016-11-23
3
Medium Priority
?
114 Views
Last Modified: 2016-11-25
I have a Bootstrap form that is using glyphicons.  I need to replace one of them with a custom icon.

First, I need to know how to swap out one of the out of the box bootstrap icons with my own and once I know how to do that I need to find an ICON generator or method to build my own that will look like text in a button.  One such button needs to say "Go".

Here is a code fragment where I want to make this change:
<div id="advancedInitial" style="display:none">
      <div class="container-fluid">
        <label for="person">Who Do You like?</label>
        <div class="input-group">
          <input type="text" id="txtSearchSelectedPeopleInitial" class="form-control" name="field1"/>
          <div class="input-group-addon"><a href="#" onClick="SearchRequest(); return false;" class="glyphicon glyphicon-search"></a></div>
        </div>
      </div>
</div>

Open in new window

0
Comment
Question by:Howard Bash
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 41899372
what about : https://jsfiddle.net/do5ftjna/2/
you don't really need the span around the GO...

<div id="advancedInitial">
      <div class="container-fluid">
        <label for="person">Who Do You like?</label>
        <div class="input-group">
          <input type="text" id="txtSearchSelectedPeopleInitial" class="form-control" name="field1"/>
          <div class="input-group-addon"><a href="#" onClick="SearchRequest(); return false;" class=""><span>GO</span></a></div>
        </div>
      </div>
</div>

Open in new window


about gliphicone-search, look inside this file, line 309 : https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css

.glyphicon-search:before {
  content: "\e003";
}

Open in new window

0
 
LVL 1

Author Comment

by:Howard Bash
ID: 41899453
What about icomoon and/or creating your own SVG file?
0
 
LVL 83

Expert Comment

by:leakim971
ID: 41899893
i don't kno iconmoon. If it allow you creatz your own fonts it's all good. After that you just need to use your on class which use your custom fonts
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question