?
Solved

Bootstap Icons

Posted on 2016-11-23
3
Medium Priority
?
83 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 82

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 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

RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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

741 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