bootstrap styled buttons

Just in-case you would like the shiny (flat/rounded) blue buttons from bootstrap without all the css.

Example Button

add the class btn and btn-primary to your link

An Example Primary Button (btn-primary) An Example Button (btn)

<a href='#!' class='btn btn-primary'>An Example Primary Button (btn-primary)</a> <a href='#!' class='btn'>An Example Button (btn)</a>

CSS

a.btn {
	text-decoration: none;
}
a.btn.btn-primary {
	color:#FFF;
}
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .5rem 1rem;
    font-size: 1rem;
    border-radius: .25rem;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}
.btn-primary {
    color: #fff;
    background-color: #0275d8;
    border-color: #0275d8;
}
.btn-primary:hover {
    color: #fff;
    background-color: #025aa5;
    border-color: #01549b;
}

HTML

<a href='#!' class='btn btn-primary'>An Example button</a>

Demo

Other Items in css
Page Views

This page has been viewed 113 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹