Bootstrap Modal with HTML

How to create a working Bootstrap Modal with HTML

Bootstrap Modal is very popular and important for the User Interface (UI). In this tutorial, we will learn how to create a Bootstrap Modal in 2 minutes.  It offers you a way to make information available for the user, without crowding what he sees at once.

The Bootstrap Modal is one of the most popular plugins offered by Bootstrap. This is a multi-purpose popup built with HTML, CSS and JavaScript. Basically, the modal is a scripted element that overlays over a website page.

Using the Bootstrap Modal plugin it is one of the best ways to load content inside a popup screen without writing any JavaScript.

(more…)

Read More

Navbar Header

How to Easily Build a Bootstrap Responsive Navbar

If you want to see more examples and a complete tutorial, you can check out our new article about Bootstrap 4 Navbar.

 

Hi and welcome 🙂 In this guide, you will learn how to build a responsive navbar with Bootstrap from scratch on a single web page. We are going to use some amazing features and functionalities.

A list of the tools we’re going to use in this guide:

1. Browser: Chrome

A nice feature of this browser is that we have access to Dev Tools (source code, console and so on). Also, you can toggle different devices so you’re able to see how a website will look on any device. You can literally simulate a mobile device and get a really good feel & look regarding how the website will be.

(more…)

Read More

Bootstrap Button Styles

5 Easy Ways to Modify Your Bootstrap Button Styles

In the following tutorial, we’re going to show you 5 easy ways to modify your Bootstrap button styles. This is a quick and easy way to differentiate your site from the default Bootstrap look. 

If you want to see more examples and a complete tutorial, you can check out our new article about Bootstrap 4 Buttons.

Initial Setup

We modified the default Bootstrap .btn class with the following CSS styles. These styles are only required if you’re looking to achieve the same look and feel as our button pack. Otherwise, you can stick with the default Bootstrap styles for now.

.btn {
    padding: 14px 24px;
    border: 0 none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn:focus, .btn:active:focus, .btn.active:focus {
    outline: 0 none;
}

.btn-primary {
    background: #0099cc;
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary {
    background: #33a6cc;
}

.btn-primary:active, .btn-primary.active {
    background: #007299;
    box-shadow: none;
}

Now that we’ve modified our .btn class, let’s go over our custom button classes.

Sharp Buttons

To create sharp buttons, simply set your border radius to 0.

.btn.sharp {
  border-radius:0;
}

See the Pen YPKbxW by BootstrapBay (@bootstrapbay) on CodePen.

Outline Buttons

The first step in creating an outline button is to remove the background. Since we’ll be increasing the border width, you also need to reduce the button padding. Otherwise, your button will appear oversized.

.btn.outline {
	background: none;
	padding: 12px 22px;
}

Next, you need to increase the thickness of the border and change the color to match the border.

.btn-primary.outline {
	border: 2px solid #0099cc;
	color: #0099cc;
}

Finally, you can add some hover effects by modifying the color and border colors when hovering over the button.

.btn-primary.outline:hover, .btn-primary.outline:focus, .btn-primary.outline:active, .btn-primary.outline.active, .open > .dropdown-toggle.btn-primary {
	color: #33a6cc;
	border-color: #33a6cc;
}
.btn-primary.outline:active, .btn-primary.outline.active {
	border-color: #007299;
	color: #007299;
	box-shadow: none;
}

See the Pen PwYvaO by BootstrapBay (@bootstrapbay) on CodePen.

Gradient Buttons

With gradient buttons, you’ll need a starting and ending color. While a typical linear gradient starts with one color and fades to another, this example has a hard shift in color halfway through the button. You’ll notice all the different lines we’ve added and that’s simply for compatibility across older browsers.

.btn-primary.gradient {
	background: -moz-linear-gradient(top,  #33a6cc 50%, #0099cc 50%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(50%,#33a6cc), color-stop(50%,#0099cc)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #33a6cc 50%,#0099cc 50%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #33a6cc 50%,#0099cc 50%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #33a6cc 50%,#0099cc 50%); /* IE10+ */
	background: linear-gradient(to bottom,  #33a6cc 50%,#0099cc 50%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33a6cc', endColorstr='#0099cc',GradientType=0 ); /* IE6-9 */
}

Next, we lighten the buttons when hovering over them.

.btn-primary.gradient:hover, .btn-primary.gradient:focus, .btn-primary.gradient:active, .btn-primary.gradient.active, .open > .dropdown-toggle.btn-primary {
	background: -moz-linear-gradient(top,  #66b2cc 50%, #33a6cc 50%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(50%,#66b2cc), color-stop(50%,#33a6cc)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #66b2cc 50%,#33a6cc 50%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #66b2cc 50%,#33a6cc 50%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #66b2cc 50%,#33a6cc 50%); /* IE10+ */
	background: linear-gradient(to bottom,  #66b2cc 50%,#33a6cc 50%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#66b2cc', endColorstr='#33a6cc',GradientType=0 ); /* IE6-9 */
}

Finally, we darken the buttons when they’re active/clicked.

.btn-primary.gradient:active, .btn-primary.gradient.active {
	background: -moz-linear-gradient(top,  #267c99 50%, #007299 50%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(50%,#267c99), color-stop(50%,#007299)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #267c99 50%,#007299 50%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #267c99 50%,#007299 50%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #267c99 50%,#007299 50%); /* IE10+ */
	background: linear-gradient(to bottom,  #267c99 50%,#007299 50%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#267c99', endColorstr='#007299',GradientType=0 ); /* IE6-9 */
}

See the Pen PwYrQX by BootstrapBay (@bootstrapbay) on CodePen.

Rounded Buttons

To get the rounded look, simply increase the pixel size on the border radius.

.btn-lg.round {
	border-radius: 24px;
}

See the Pen MYgMBy by BootstrapBay (@bootstrapbay) on CodePen.

Raised Buttons

First, you need to create a box shadow to give the effect that the button is raised.

.btn-primary.raised {
	box-shadow: 0 3px 0 0 #007299;
}

Then, you need to remove the box shadow and modify the margins when the button is activated.

.btn-primary.raised:active, .btn-primary.raised.active {
	background: #33a6cc;
	box-shadow: none;
	margin-bottom: -3px;
	margin-top: 3px;
}

See the Pen ogvrME by BootstrapBay (@bootstrapbay) on CodePen.

Download The Button Pack

I hope you found this tutorial helpful. If you liked these button styles, make sure to download the button pack.

Read More

How to Design User Experience to Increase Conversions

How to Design the User Experience to Increase Conversions

You’ve just built your client what you think is a dynamite, new website. It looks cool, displays all of the social media buttons on the homepage, and maybe even took faster than you expected to complete.

So what about designing for the user experience, so that your client’s conversions drastically increase? If you didn’t plan the design of your new site around this main concern, then it’s time to go back to the drawing board! (more…)

Read More

bootstrap vs foundation

Bootstrap vs. Foundation: Which Framework is Better?

If you’re a web designer who’s looking for a sleek, simple and responsive front-end framework, you’ve probably heard of both Bootstrap and Foundation. That’s because these are the two most popular frameworks around right now.

In your mind, you’re probably also thinking…Bootstrap vs. Foundation…Bootstrap vs. Foundation! Which should I use? Which can get me to where I have a fully functioning, new website more efficiently? Relax—we’ve got you covered.

Before we dive into the details of each framework, know that each one has its pros and cons. At the end of this blog post, you’ll make a decision on which is better based on your unique situation, your needs and your familiarity with code in the first place. (more…)

Read More

web-typograph-best-practices

The All-Inclusive Guide to Web Typography Best Practices

Look around the Internet, and note how typography absolutely dominates web design in every aspect. After all, there’s a reason that web design is 95% typography. This makes a world of sense when you think about it. The Internet is all about content, and content means text and words. And that means typography.

The smart web designer knows this and will therefore devote a lot of careful thought and deliberation to getting typography right on any site that he’s working on. In his quest to make type both functional and attractive to the reader, he has to consider a bunch of different factors when planning the information architecture of the site. What sort of fonts are the most readable? Which fonts are easy for readers to skim through? What about fonts that are legible? (more…)

Read More

lorem ipsum alternatives

Top 10 Lorem Ipsum Alternatives

So you’re a theme developer and you’re tired of using the same old boring Lorem Ipsum as a dummy text generator.  We hear you loud and clear.

But what other choice do you have? You need to display some text right?

You’re not the first designer who’s faced this problem and that’s why we searched the web for the best Lorem Ipsum alternatives to incorporate into your next project. Some are very useful while others are just plain hilarious. When developing your next Bootstrap theme, make sure to give one of these a try. (more…)

Read More

GSD Bootstrap UI Kit

13 Bootstrap UI Kits That Will Improve Your Workflow

If you are just starting to learn Bootstrap, we have created a series of tutorials called 14 Days of Bootstrap 4 that can help you with your development.

If you’re not using a UI kit for your web designs and themes, it may be time to consider it.

Put simply, UI kits can save you time and money while drastically improving the look and feel of your design. Not only will you be able to differentiate yourself from the default Bootstrap styling, you can change the overall styling of your theme much more efficiently.

(more…)

Read More

google web fonts

Top 20 Google Web Fonts and How to Use Them

As a web designer, you’re probably well aware of the importance of typeface. With the growing amount of businesses engaging in content marketing, font selection is becoming all the more crucial.

There’s nothing worse than coming across a website with awesome content and horrible typeface. One of your main goals as a designer is ensuring a positive experience for the end-user.

After the release of Google Web Fonts, it’s become a lot easier to incorporate beautiful typography into your websites. The only difficulty is sorting through the 600+ styles that are offered.

For this reason, we’ve put together our top 20 Google web fonts that are sure to bring out the best of your design. (more…)

Read More

responsive design

Top 5 Reasons to use Bootstrap

If you are just starting to learn Bootstrap, we have created a series of tutorials called 14 Days of Bootstrap 4 that can help you.

 

Are you a web designer or developer who’s new to Bootstrap and front-end frameworks? Are you wondering what all the hype is about? Allow us to shed some light.

Over the last few years, Bootstrap has become an increasingly popular front-end development framework. More and more developers and designers continue to get on board. Evidently, there’s a reason for that.

The Bootstrap framework is feature rich and offers several benefits to those using it. We go over these benefits in the top 5 reasons to use Bootstrap. (more…)

Read More