Solved

Bootstap Icons

Posted on 2016-11-23
3
20 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:hbash
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 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:hbash
ID: 41899453
What about icomoon and/or creating your own SVG file?
0
 
LVL 82

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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 …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

706 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now