Monday, November 27, 2017

Responsive utilities

For a mobile first design botstrap provides us some classes for responsive utilities that is to view or hide in print or web or in a particular device type.

1. Responsive visibility

the class name .visible-*-* for make visible and the first * denots for xs for extra small, sm for small, md, for medium and lg for large devices and the second * denots for the block,inline, or inline-block to make display type.
Ex.
Extra small devicesPhones (<768px)Small devicesTablets (≥768px)Medium devicesDesktops (≥992px)Large devicesDesktops (≥1200px)
.visible-xs-*Visible
.visible-sm-*Visible
.visible-md-*Visible
.visible-lg-*Visible
.hidden-xsVisibleVisibleVisible
.hidden-smVisibleVisibleVisible
.hidden-mdVisibleVisibleVisible
.hidden-lgVisibleVisibleVisible

2. Visible in web and print or Print classes:

By using the classes .visible-print-block, .visible-print-inline, .visible-print-inline-block we can make a tah visible in print only and it will be hide on web
similarly using the class name .hidden-print we can make that particular tag invisible or hidden on print but it will be visible on print.
Ex.
ClassesBrowserPrint
.visible-print-block
.visible-print-inline
.visible-print-inline-block
Visible
.hidden-printVisible

Thanks For Reading

No comments:

Bootstrap Button Group

In our previus post we've learned regarding bootstrap button anw we tend to square measure progressing to learn Bootstrap three Button ...