Customize HTML5 Page by using Bootstrap

Customize HTML5 Page by using Bootstrap

Today, many web professionals are well-versed with Twitter Bootstrap and also seen this library on many web projects. When you need a CSS reset along with other common layout features the Bootstrap core is fantastic. It may not perfectly suit on projects where you require a full modification. But for smaller sites and landing webpage, Bootstrap has become one of the simplest resources to utilize.

In this post, we show using Bootstrap how we can create a simple homepage layout design. Many HTML structures and CSS classes are documented well on the main Bootstrap site. But the method of designing & creating your personal web layout from scratch can offer you a better learning experience.

Bootstrap Download

You can be able to download a copy of Bootstrap just from the hosted Github project web page. There is a choice to tailor the features you need to have on your business website, but here we captured the whole library since it is a simple and easy to handle. Here we include the bootstrap.min.js, though we do not use any JavaScript components.

Here we are also using 2 reduced CSS documents 1)bootstrap.min.css and 2)bootstrap-responsive.min.css. A large number of browser resets include in the first stylesheet along with basic styles for the layout structure and typography. The Bootstrap uses the 12 columns system where each container has a various class name. These columns are organized well by .span#. If you’re interested then the frame page can go into more detail.

The HTML5 doctype is the best selection of the latest web browsers and the same is also the case with the Bootstrap and I've included the usual meta tags. It is worth focusing on some of the internal body components when concerning the Bootstrap file implementation. My layout is structured by using a centered content block for the page body, navigation, header & footer and the full-page width.

Heading Navigation Bar

After the opening body tag directly implements a fixed navigation menu. Which includes an internal UL along with a container div class called .container. The Bootstrap basically uses the container as a wrapper which expands from 940 pixels to 1170 pixels at maximum. We can change background colors because we have the outermost container as a full-width element and have it show up on the full webpage.

With a container and the class .text-center the header div contains another bit of code. The Bootstrap uses this class for default text alignment into the center of the web page. The dark button also have 3 classes named as – .btn, .btn-large, and .btn-inverse. These button classes are straightforward and offer a nice break in usual layouts.

All codes are stored in my customized stylesheet global.css. Definitely, the Bootstrap won't offer all that you require and even if it can you surely need to write your own CSS codes for various webpage elements. The Bootstrap is not a whole package, it is simply the ground framework used to develop sites easy and simple.

Flexible Columns

We have developed a focused main content area below the full-screen background image. Inside there are 2 specific sections, in that one is a list a 3 column stack of features with a thumbnail media gallery. All 2 sections are constructed by using the default classes of Bootstrap.

If the window size is modified you can see that the container will contract in width. Once we drop the size below ~760px the full layout slims to a mobile-responsive display. In this scenario, we needed to have 3 equal columns which basically estimate out of 3 different span4 code blocks. Suppose if you've any thoughts on column styles, then try them in the HTML and observe if you can together place a layout design without much of your CSS code.

Picture Thumbnails

In the previous versions of Bootstrap had the display named as Media Grid but the name has changed to Bootstrap Thumbnails. The classes have a structure by using the same kind of span containers. Only the outer element is using the class .thumbnails rather than of the container.

The anchor link encompassing the picture can give a class of .thumbnail to include the border effects. Alternatively, you can apply the same class over the image tag itself when you don't have any anchor links in the code.

If you don’t plan for the changes while using the Bootstrap responsive CSS stylesheet can be a hassle. It is also important you adjust typical CSS classes as the window gets smaller because times font will be sized in pixels. By using the Bootstrap’s default responsive stylesheet, it is a nice approach of a start without having to code every single responsive detail.

Closing the Footer

Close the complete layout by using a full-width footer element. This enables both the top border and background to span the whole of the webpage width. Inside the container block, we've the content centralized with the other webpage elements. Without writing any alternate code all of these classes were pulled right out of Bootstrap.

By just adding the basic bootstrap.min.css file will offer the browser resets and some tradition CSS classes for structuring your layout.


This post may be useful to some of the web development professionals who are still getting started with Bootstrap. Bootstrap is a very easy and simple framework by considering this you can get more of the best assets just from the CSS files alone. The extra JavaScript widgets can insert into the overall interface design, you can create a beautiful page without using any JS components.

If you have any doubts or queries about this blog, then please feel free to contact us immediately, we are here to help you. Email-id:

Contact Us


Contact Us