Bootstrap CSS!

What is a bootstrap? A bootstrap is a line of code that makes the framework for websites easier for developers. They are also used as templates for typography, buttons, tables, navigations, models, and several other functions. This makes web development ten times easier than starting from scratch. Having a template gives the coder a head start in developing the website.

Bootstraps prevent repetition between projects, add consistency to design and code between projects and between developers, quickly and easily prototype new designs and ensures cross-browser compatibility. Browsers like Google Chrome, Mozilla Firefox, Internet Explorer, Edge, Safari, and Opera are all compatible with the bootstrap. This makes it the website available to more people.

Another advantage of bootstraps is that they are responsive. This means that they adjust to whatever device is being viewed on like smartphones, tablets, laptops, and desktops. This is vital to every website because without a responsive website the UX and UI between the product and the user would be a disaster. It would look unorganized as if someone copy and pasted oversized graphic elements.

img_temp_website

The image above shows an example of how a responsive website looks like. We have the Desktop, tablet, and mobile versions on the website adjusted by their dimension and resolution of the screen. As you can see the header is sized down according to the viewing device. It is also noticeable especially in the mobile version that the layout changed from profiles lined up horizontally versus in mobile where the profiles (circles) are lined up vertically.

One way to get bootstraps to create a website is through the website getbootstrap.com. This website allows any web developer to get a bootstrap to include in their work.  These shortcuts also have pre-styled components like dropdowns, button groups, navigation bar, breadcrumbs, labels, badges, alerts, progress bar, and several others.

Essentially, bootstraps are shortcuts of code in HTML and CSS; instead of typing fifteen lines of code, it could be shortened to three with the power of the bootstrap!

Why is Bootstrap so popular?

I believe bootstrap is popular because of the possibilities it is capable of. The templates Bootstrap provides can be altered to be one of a kind. Making a website could take only a matter of minutes, while at the same time visually look modern unlike former ways of building websites. Web Responsiveness is also another factor that makes web developing a lot easier which is why it is so popular.

Photo by David Rangel on Unsplash

Page Size Optimization

Page size optimization means boosting a website’s speed and performance to the max. So switching from “About Us” to “Home” button will take one fifteenth 1/15 of a second instead of fifteen seconds. Finding the problem is the first step of optimizing a website.

Most slow websites consist of:

  • Multiple CSS files
  • Scripts
  • Heavy images
  • Third-party plugins
  • Marketing tags
  • Tracking tags

Use the list above as things not to do when making a website. Be aware of the content in the website and make sure its short and on the point for whatever purpose the website may serve.

Next step is to optimize code in CSS and JavaScript (JS) to erase any extra lines or even shortcuts to make it easier for the computer to process and display in shorter time allowing for better performance for the website.

Gzip compression is a powerful tool that can guarantee any website better speed and performance overall. Gzip compression cuts down the size of the requested resource by almost 90%. This creates a ton of space to add in more elements to websites like more images, icons, text, buttons, graphics, and videos!

Almost nothing looks pretty without an image. recent studies show that page sizes consist of 64% on average. Most times, images are added in high quality to make a website have a crisp design. However, high quality images take a heavy toll and ultimately slow down page size optimization. Luckily, there is image compression to minimize the loading time of a website. Another great contribution is the metadata added when a picture is taken like the aperture, shutter speed, iso, and geo information which should be removed as well.

Browser caching is another technique to improve page size optimization. Using the cached data allows it to not need to redownload the resource again. It reduces the load server and allows more space for graphics and other elements.

Lastly, web fonts are used to minimize space held in the text. Unfortunately, some browsers do not support it web fonts.  Web fonts can be attained from external resources along with CSS and JavaScript. When using custom fonts, it is best to use it locally.

To learn more about web performance and page size optimization click here.

To learn more about more direct instructions to improving your website click here.

Photo by Kirstyn Paynter on Unsplash

Bootstrap CSS

A bootstrap is a line of code that makes the framework for websites easier for developers. They are also used as templates for typography, buttons, tables, navigations, models, and several other functions. Bootstraps prevent repetition between projects, add consistency to design and code between projects and between developers, quickly and easily prototype new designs and ensures cross-browser compatibility. Another advantage of bootstraps is that they are responsive. This means that they adjust to whatever device is being viewed on like smartphones, tablets, laptops, and desktops. Ome way to get bootstraps to create a website is through the website getbootstrap.com. This website allows any web developer to get a bootstrap to include in their work.  These shortcuts also have pre-styled components like dropdowns, button groups, navigation bar, breadcrumbs, labels, badges, alerts, progress bar, and several others.

Essentially, bootstraps are shortcuts of code in HTML and CSS; instead of typing fifteen lines of code, it could be shortened to three with the power of the bootstrap! Here is an example of a bootstrap being used for accommodating to different electronic devices that are accessible to the internet.

When creating a page layout for websites it is essential to use the grid system which allows the creator to easily make a website with efficiency.

  • “Rows must be placed within a .container (fixed-width) or .container-fluid (full-width) for proper alignment and padding.
  • Use rows to create horizontal groups of columns.
  • Content should be placed within columns, and only columns may be immediate children of rows.
  • Predefined grid classes like .row and .col-xs-4 are available for quickly making grid layouts. Less mixins can also be used for more semantic layouts.
  • Columns create gutters (gaps between column content) via padding. That padding is offset in rows for the first and last column via negative margin on .rows.
  • The negative margin is why the examples below are outdented. It’s so that content within grid columns is lined up with non-grid content.
  • Grid columns are created by specifying the number of twelve available columns you wish to span. For example, three equal columns would use three .col-xs-4.
  • If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.
  • Grid classes apply to devices with screen widths greater than or equal to the breakpoint sizes, and override grid classes targeted at smaller devices. Therefore, e.g. applying any .col-md-* class to an element will not only affect its styling on medium devices but also on large devices if a .col-lg-* class is not present.”

These key points to starting a website are from the website itself that makes bootstraps, https://getbootstrap.com/docs/3.3/css/#overview.

Photo by Ryan Everett on Unsplash