Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize text size in bootstrap button

Tags:

I am trying to a create a "Download from the App Store" button using twitter bootstrap.

The issue I am having is trying to make the "App Store" text larger than the "Download from the" text above it.

Here is HTML and CSS that I am using.

.fixed-hero .hero-text {     padding-top: 90px;     width: 65%;     color:#fff;     font-family: Century Gothic, sans-serif;     font-size: 2.2em;     line-height: 1.5em;   } .fixed-hero .hero-button {     padding-top: 60px;     width: 65%; }  .btn.btn-large.btn-danger{     border-style:solid;     border-width:1px;     border-color:#fff;     background-image: linear-gradient(to bottom, rgb(204, 81, 81), #990000);     text-align: left; }      <div class="hero-button text-center">             <a href="#" class="btn btn-large btn-danger">                 <i class="icon-apple icon-3x pull-left"></i>                 <div>                 Download from the                 App Store                 </div>             </a>     </div> 

I appreciate the feedback and expertise.

like image 855
bbrooke Avatar asked Jul 10 '13 19:07

bbrooke


People also ask

How do I change the size of the button text?

To change the font size of a button, use the font-size property.

How do I change the button size in Bootstrap?

You can very easily change button size by adding btn-lg or btn-sm class to it. These classes modify the button's padding and also the font size and the CSS border radius.

How do I make the font bigger in Bootstrap?

Use the . lead class in Bootstrap to increase the font size of a paragraph.


1 Answers

wrap the text and shrink it with font-size:smaller or whatever size you like.

<div class="hero-button text-center">         <a href="#" class="btn btn-large btn-danger">             <i class="icon-apple icon-3x pull-left"></i>                 <span style="font-size:smaller;">Download from the</span>             App Store         </a> </div> 
like image 165
tmcc Avatar answered Sep 18 '22 02:09

tmcc