FREE Web Template Download
HTML CSS JAVASCRIPT SQL PHP BOOTSTRAP JQUERY ANGULARJS TUTORIALS REFERENCES EXAMPLES Blog
 

TheBestTutorials.css Utilities (Helpers)


Utility Classes

Most of TheBestTutorials.css is built around utility classes providing padding, margins, sizes, and positioning.

Utility classes are often called Helper classes.


Padding Classes

The TheBestTutorials-padding-number classes adds top and bottom padding to an HTML element:

TheBestTutorials-padding-4

I have 4px top and bottom padding

subhodaya-padding-8

I have 8px top and bottom padding

TheBestTutorials-padding-16

I have 16px top and bottom padding

TheBestTutorials-padding-24

I have 24px top and bottom padding

TheBestTutorials-padding-32

I have 32px top and bottom padding

TheBestTutorials-padding-48

I have 48px top and bottom padding

TheBestTutorials-padding-64

I have 64px top and bottom padding

TheBestTutorials-padding-128

I have 128px top and bottom padding

Example

<div class="subhodaya-container subhodaya-padding-16">
  <p>I have 16px top and bottom padding.</p>
</div>
Try It Yourself »

The TheBestTutorials-padding-size classes adds padding to any HTML element:

The TheBestTutorials-padding-tiny class adds 2px top and bottom and 4px left and right.

The TheBestTutorials-padding-small class adds 4px top and bottom and 8px left and right.

The TheBestTutorials-padding-medium class adds 8px top and bottom and 16px left and right.

The TheBestTutorials-padding-large class adds 12px top and bottom and 24px left and right.

The TheBestTutorials-padding-xlarge class adds 16px top and bottom and 32px left and right.

The TheBestTutorials-padding-xxlarge class adds 24px top and bottom and 48px left and right.

The TheBestTutorials-padding-jumbo class adds 32px top and bottom and 64px left and right.

Example

<div class="subhodaya-container subhodaya-padding-xlarge">
  <p>I have 16px top and bottom padding and 32px left and right padding.</p>
</div>
Try It Yourself »

Margin Classes

The TheBestTutorials-margin classes add margins to an element:

The TheBestTutorials-margin class adds 16px margin to all sides of an element.

The TheBestTutorials-margin-bottom class adds a 16px bottom margin to an element.

The TheBestTutorials-margin-left class adds a 16px left margin to an element.

The TheBestTutorials-margin-right class adds a 16px right margin to an element.

The TheBestTutorials-margin-top class adds a 16px top margin to an element.

Example

<div class="subhodaya-container subhodaya-margin">
  <p>I have 16px margin on all sides.</p>
</div>
Try It Yourself »

Round Classes

The TheBestTutorials-round-size class adds rounded borders to an element:

TheBestTutorials-round-small
TheBestTutorials-round
TheBestTutorials-round-large
TheBestTutorials-round-xlarge
TheBestTutorials-round-jumbo

Example

<div class="subhodaya-round subhodaya-teal subhodaya-padding">subhodaya-round</div>
Try It Yourself »

The Circle Class

Example

<img class="subhodaya-circle" src="img_car.jpg" alt="Car">
Try It Yourself »

The Center Class

The TheBestTutorials-center class centers an element:




Example

<div class="subhodaya-container subhodaya-center">
  <img class="subhodaya-circle" src="img_car.jpg" alt="Car">
</div> 
Try It Yourself »

Floating Classes

The TheBestTutorials-left class floats an element to the left, the TheBestTutorials-right class floats an element to the right:

TheBestTutorials-left
TheBestTutorials-right

Example

<div class="subhodaya-container subhodaya-light-grey">
  <div class="subhodaya-left subhodaya-red">subhodaya-left</div>
  <div class="subhodaya-right subhodaya-blue">subhodaya-right</div>
</div>
Try It Yourself »

Show / Hide Classes

The TheBestTutorials-hide-small|medium|large class hides an element on a specific screen size.

Note: Resize the browser window to understand how it works:

TheBestTutorials-hide-small will be hidden on small screens (phones)

TheBestTutorials-hide-medium will be hidden on medium screens (tablets)

TheBestTutorials-hide-large will be hidden on large screens (laptops/desktop)

Example

<p class="subhodaya-hide-small">subhodaya-hide-small will be hidden on small screens (phone)</p>
<p class="subhodaya-hide-medium">subhodaya-hide-medium will be hidden on medium screens (tablet)</p>
<p class="subhodaya-hide-large">subhodaya-hide-large will be hidden on large screens (laptop/desktop)</p>
Try It Yourself »