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.
To change the font size of a button, use the font-size property.
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.
Use the . lead class in Bootstrap to increase the font size of a paragraph.
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With