Containers

</>
Extra small
<768px
Small
≥768px
Medium
≥992px
Large
≥1200px
container 100% - 30px 750px 970px 1170px
container-fluid 100% - 30px 100% - 30px 100% - 30px 100% - 30px

Row

</>
Row

Column

</>
col-md-12
col-md-11
col-md-1
col-md-10
col-md-2
col-md-9
col-md-3
col-md-8
col-md-4
col-md-7
col-md-5
col-md-6
col-md-6

Align any content centered middle

</>
text-center align-content-center

Form Control

Basic form

floating-label-group

floating-lg

.floating-label-group .floating-label-border

.floating-label-group.floating-lg .floating-label-border new

.floating-label-group.floating-lg .floating-label-border new


Input Group




Text

Text

Text

Text

Text

Upload your file : using 'input-group-file-addon'

Also working with jQuery validation error message

using DIV fill-value="name" ext="false"
Upload
No file chosen...

using DIV fill-value="name" name-length="5"
No file chosen...
Upload

using INPUT fill-value="name"
Upload

using INPUT fill-value="path" Default value only
Upload





Disabled



Readonly


Checkbox


Checkbox inline


Form control: inline radio buttons


Required inline radio buttons

Input as switch

Basic List Group

  • list-group-item active
  • list-group-item disabled
  • list-group-item

Input Colors (Label + Input)

</>

Textarea form-group form-control

Select list dropdown

</>


Inline type form group with card
Upload
No file chosen...


Fieldset
This is legend
Regular form group with card
Upload
No file chosen...
No file chosen...
Upload


Badges and Labels

Badge

btn > badge



panel > badge

panel-primary badge Badge
panel-success badge Badge
panel-info badge Badge
panel-warning badge Badge
panel-danger badge Badge

Labels

Default labels


label label-default label label-primary label label-success label label-info label label-warning label label-danger

Button Style




Transparent buttons




Block button


Button group (btn-group)

Table

Table Color

Firstname Lastname Email
Default Defaultson [email protected]
<tr class="success"> <td>Success</td> </tr> Doe [email protected]
<tr class="danger"> <td>danger</td> </tr> Moe [email protected]
<tr class="info"> <td>info</td> </tr> Dooley [email protected]
<tr class="warning"> <td>warning</td> </tr> Refs [email protected]
<tr class="active"> <td>table data</td> </tr> Activeson [email protected]

table table-bordered table-striped table-hover

# Firstname
1 Anna
2 Debbie
3 John
4 Mehedi
5 Riad
# Firstname
1 Anna
2 Debbie
3 John
4 Mehedi
5 Riad
# Firstname
1 Anna
2 Debbie
3 John
4 Mehedi
5 Riad
# Firstname
1 Anna
2 Debbie
3 John
4 Mehedi
5 Riad
# Firstname
1 Anna
2 Debbie
3 John
4 Mehedi
5 Riad

panel > panel-group

Panel with panel-primary class
Panel body
Panel with panel-success class
Panel body
Panel with panel-info class
Panel body
Panel with panel-warning class
Panel body
Panel with panel-danger class
Panel body

Card

Card with top image


Image caption
card-title

card-text Lorem ipsum, dolor sit amet consectetur adipisicing elit. Aut, voluptatum.

btn btn-primary

Card with bottom image


Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Placeholder Image caption

Card with Header and Footer


Featured
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Image overlays


Placeholder Card image
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Horizontal Card


Placeholder Image
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago


Featured card


Featured
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere



Background and color


Header
Primary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
secondary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
danger card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
warning card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
info card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
light card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
dark card title

Some quick example text to build on the card title and make up the bulk of the card's content.





Border and text


Header
Primary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
secondary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
danger card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
warning card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
info card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
light card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
dark card title

Some quick example text to build on the card title and make up the bulk of the card's content.





Card Group

Header
Card title

Lorem ipsum dolor sit amet consectetur, adipisicing elit. Natus quaerat praesentium eligendi vitae. Ex, sed!

Header
Card title

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Dignissimos odit vero quos necessitatibus! Enim, iure totam. Ea similique, explicabo officia doloribus voluptatibus numquam iure eius illo omnis quas doloremque deserunt quasi! Sapiente.

Header
Card title

Lorem ipsum dolor sit amet.






Card with Nav tab


Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Menu 1

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Menu 2

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.


Card with Nav pill


Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Menu 1

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Menu 2

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.


Card with Quote


Quote

A well-known quote, contained in a blockquote element.

Someone famous in Source Title

Navbar section

Navbar Buttons

Navbar Forms

Nav Tabs using Panel

HOME

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Nav Pills Using Panel

HOME

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Menu 1

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Menu 2

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.

Collapse (Accordion)

Lorem ipsum, dolor sit amet consectetur adipisicing elit. Dicta perspiciatis illum vero temporibus, odit omnis maiores sed quidem iure dolore aliquid explicabo distinctio nam excepturi voluptas facere quae tempore. Alias, distinctio cumque?

Card Body
Panel Body

Collapsible Card Group

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Collapsible Panel Group

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Alert

Alert Links

Success! alert alert-success read this message.
Info! alert alert-info alert-link.
Warning! alert alert-warning alert-link.
Danger! alert alert-danger alert-link.

Closing Alerts with animate

× Success! alert alert-success alert-dismissible fade in
× Info! alert alert-info alert-dismissible fade in
× Warning! alert alert-warning alert-dismissible fade in
× Danger! alert alert-danger alert-dismissible fade in

Dropdown


Basic Dropdown

</>

Dropdown With Divider

</>

Dropdown with header Active link

</>

dropup hover Open on hover

</>

Dropdown Position Left Disable link

</>

Dropdown Position Right

</>

Modal

</>

Welcome to observer area

Hai ✋
<div id="" class="" observer="true" funcName="" onHideFuncName=""></div>
                                                            
observer working with observer="true" and
   this function for visible element funcName=""
  & this function for invisible element onHideFuncName=""

CSS Flex

Media table
xs sm md lg xxl
<767px ≥768 ≥992 ≥1200 ≥1400

Enable flex behaviors

d-flex
d-inline-flex
d-xs-flex
d-xs-inline-flex
d-sm-flex
d-sm-inline-flex
d-md-flex
d-md-inline-flex
d-lg-flex
d-lg-inline-flex
d-xl-flex
d-xl-inline-flex
d-xxl-flex
d-xxl-inline-flex

Justify content

justify
content
start
justify
content
end
justify
content
center
justify
content
between
justify
content
around
justify
content
evenly

justify-content- or align-items / content also working with media xs / sm / md / lg and xxl


Align items

align items start
align items end
align items center
align items baseline
align items stretch

Align self

align
self
start
align
self
end
align
self
center
align
self
baseline
align
self
stretch

Flex Fill

flex-fil Flex item with a lot of content
flex-fil
flex-fil

Flex Grow

flex-grow-1
Flex item
Third flex item

Fkex Shrink

Flex item Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit, maiores?
flex-shrink-1

Flex Direction

d-flex flex-row-reverse
Flex item 1
Flex item 2
Flex item 3

Flex Direction

d-flex flex-row
Flex item 1
Flex item 2
Flex item 3

d-flex flex-column
Flex item 1
Flex item 2
Flex item 3

d-flex flex-column-reverse
Flex item 1
Flex item 2
Flex item 3

Utilities Spacing

Margin and padding

Assign responsive-friendly margin or padding values to an element or a subset of its sides with shorthand classes.

Notation

Spacing utilities that apply to all breakpoints, from xs to lg and bonus feature is xxl also

The classes are named using the format {property}{sides}-{size} for xs and {property}{sides}-{breakpoint}-{size} for xs, sm, md, lg, and bonus xxl.

Where property is one of:
  • m - for classes that set margin
  • p - for classes that set padding
Where sides is one of:
  • t - for classes that set margin-top or padding-top
  • b - for classes that set margin-bottom or padding-bottom
  • s - (start) for classes that set margin-left or padding-left in LTR, margin-right or padding-right in RTL
  • e - (end) for classes that set margin-right or padding-right in LTR, margin-left or padding-left in RTL
  • x - for classes that set both *-left and *-right
  • y - for classes that set both *-top and *-bottom
  • blank - for classes that set a margin or padding on all 4 sides of the element
Where size is one of:
  • 0 - for classes that eliminate the margin or padding by setting it to 0
  • 1 - (by default) for classes that set the margin or padding to 1px
  • 2 - (by default) for classes that set the margin or padding to 2px
  • 3 - (by default) for classes that set the margin or padding to 3px
  • 4 - (by default) for classes that set the margin or padding to 4px
  • 5 - (by default) for classes that set the margin or padding to 5px
  • 6 - (by default) for classes that set the margin or padding to 6px
  • 7 - (by default) for classes that set the margin or padding to 7px
  • 8 - (by default) for classes that set the margin or padding to 8px
  • 9 - (by default) for classes that set the margin or padding to 9px
  • 10 - (by default) for classes that set the margin or padding to 10px
  • 15 - (by default) for classes that set the margin or padding to 15px
  • 20 - (by default) for classes that set the margin or padding to 20px
  • 25 - (by default) for classes that set the margin or padding to 25px
  • 50 - (by default) for classes that set the margin or padding to 50px
  • auto - for classes that set the margin to auto

Examples

Here are some representative examples of these classes:


    .mt-0 {
        margin-top: 0px;
    }

    .ml-0, .ms-0 {
        margin-left: 0px;
    }

    .mb-0 {
        margin-bottom: 0px;
    }

    .mr-0, .me-0 {
        margin-right: 0px;
    }

    .mx-0 {
        margin-inline: 0px;
    }

    .my-0 {
        margin-block: 0px;
    }

    .m-auto {
        margin: auto;
    }

                                
                            

Horizontal centering

Additionally, osl-css-framework also includes an .mx-auto class for horizontally centering fixed-width block level content—that is, content that has display: block and a width set—by setting the horizontal margins to auto.

Verticallly centering

Additionally, osl-css-framework also includes an .my-auto class for Verticallly centering fixed-height block level content

Utilities Position

This utilities for Position relative / absolute / fixed / sticky etc

set position using class:
  • position-relative or relative for position: relative
  • position-absolute or absolute for position: absolute
  • position-absolute-autoor absolute-autoor position-absolute-middleor absolute-middle for position: middle on relative content
  • position-fixed or fixed for position: fixed
  • position-static or static for position: static
  • position-sticky or sticky for position: sticky
  • position-inherit for position: inherit
  • position-unset for position: unset
Where sides is one of:
  • t or top - for classes that set top
  • b or bottom - for classes that set bottom
  • s/l or start/left - for classes that set left
  • e/r or end/right - for classes that set right - for classes that set right
  ----- new
  • inset-0 for classes that set top + right + bottom + left 0px
  • inset-x-0 or inset-block-0 - for classes that set both *-left and *-right 0
  • inset-y-0 or inset-inline-0 - for classes that set both *-top and *-bottom 0
Where size is one of:
  • 0 - for classes that eliminate the above/below by setting it to 0px
  • 1 - (by default) for classes that set the 1px
  • 2 - (by default) for classes that set the 2px
  • 3 - (by default) for classes that set the 3px
  • 4 - (by default) for classes that set the 4px
  • 5 - (by default) for classes that set the 5px
  • 6 - (by default) for classes that set the 6px
  • 7 - (by default) for classes that set the 7px
  • 8 - (by default) for classes that set the 8px
  • 9 - (by default) for classes that set the 9px
  • 10 - (by default) for classes that set the 10px
  • 15 - (by default) for classes that set the 15px
  • 20 - (by default) for classes that set the 20px
  • 25 - (by default) for classes that set the 25px
  • 50 - (by default) for classes that set the 50px
  • auto - for classes that set the auto

Utilities Font weight and style

This utilities for font-weight and font-style

set font weight using class:
  • fw-bold or font-bold for font-weight: bold
  • fw-bolder or font-bolder for font-weight: bolder
  • fw-lighter or font-lighter for font-weight: lighter
  • fw-100 or font-100 for font-weight: 100
  • fw-200 or font-200 for font-weight: 200
  • fw-300 or font-300 or fw-light or font-light for font-weight: 300
  • fw-400 or font-400 or fw-normal or font-normal for font-weight: 400
  • fw-500 or font-500 for font-weight: 500
  • fw-600 or font-600 for font-weight: 600
  • fw-700 or font-700 for font-weight: 700
  • fw-800 or font-800 for font-weight: 800
  • fw-900 or font-900 for font-weight: 900
  • fw-950 or font-950 for font-weight: 950
  • fst-italic or font-italic or font-style-italic for font-style: italic
  • fst-normal or font-style-normal for font-style: normal
fw-100
fw-200
fw-300
fw-400
fw-500
fw-600
fw-700
fw-800
fw-900
fw-950

Utilities Font size

font-size increase using parent font-size

  • fs-1 = parentFontSize * 1; }
  • fs-1_1 = parentFontSize * 1.1; }
  • fs-1_2 = parentFontSize * 1.2; }
  • fs-1_3 = parentFontSize * 1.3; }
  • fs-1_4 = parentFontSize * 1.4; }
  • fs-1_5 = parentFontSize * 1.5; }
  • fs-1_6 = parentFontSize * 1.6; }
  • fs-1_7 = parentFontSize * 1.7; }
  • fs-1_8 = parentFontSize * 1.8; }
  • fs-1_9 = parentFontSize * 1.9; }
  • fs-2 = parentFontSize * 2; }
  • fs-2_5 = parentFontSize * 2.5; }
  • fs-3 = parentFontSize * 3; }
  • fs-3_5 = parentFontSize * 3.5; }
  • fs-4 = parentFontSize * 4; }
  • fs-4_5 = parentFontSize * 4.5; }
  • fs-5 = parentFontSize * 5; }
  • fs-5_5 = parentFontSize * 5.5; }
  • fs-6 = parentFontSize * 6; }
  • fs-6_5 = parentFontSize * 6.5; }

Utilities Color

This utilities for set background / text color

set text and background both using class:
  • text-bg-primary
  • text-bg-secondary
  • text-bg-success
  • text-bg-danger
  • text-bg-warning / text-bg-warn
  • text-bg-info
  • text-bg-light
  • text-bg-dark
set background color using class:
  • bg-light / bg-white
  • bg-primary
  • bg-secondary
  • bg-disabled
  • bg-success
  • bg-danger
  • bg-warning / bg-warn
  • bg-info
  • bg-dark text-light
  • bg-transparent border
set text color using class:
  • text-primary
  • text-secondary
  • text-success
  • text-danger
  • text-warning
  • text-info
  • bg-dark text-light
  • text-dark

Utilities Show / Hide / visible / invisible

This utilities for show and hide

  • hide / hidden for classes that set the display: none;
  • show for classes that set the display: block;
  • invisible for classes that set the visibility: hidden;
  • affix for classes that set the position: fixed; with z-index: 1029;

Utilities Table Cell Align

The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box.

align-baseline align-top align-middle align-bottom
text-left text-start text-right text-end
text-justify Lorem ipsum, dolor sit amet consectetur adipisicing elit. Exercitationem, reiciendis! text-center

top: middle: bottom: super: sub: text-top: text-bottom:

Section Scroll

Customize your scrollbar

                                                
        Use class customScrollbar
assign Variables for customize :
        scrollbar size --scroll-thumb-color: #ff000051;
       scrollbar color --scroll-size: 10px;
                                                
                                            

Scroll X set width

                                                
--scrollX-width: 100%;
                                                
                                            

Scroll Y set height

                                                    
--scrollY-height: 500px
                                                    
                                                

Scroll Both set height and width

                                                    
--scrollBoth-height: 500px;
--scrollBoth-width: 100%;
                                                    
                                                

Text Selection

user-select-all

user-select-auto

user-select-none

Border

border
border-top
border-end
border-right
border-bottom
border-start
border-left
border
border-0
border
border-top-0
border
border-end-0
border
border-right-0
border
border-bottom-0
border
border-start-0
border
border-left-0

JavaScript Global Variables, It's update with event lister

  1. isScrollTop → It's return true / false after scroll
  2. checkImageUrl('https://****.com') → It's return true / false after check. async func
  3. getDomainFromUrl('https://****.com') → It's return domain name
  4. copyContent('copy target', 'type', 'successMessageTarget element') ↓ more details
    Copy content
    Example 1: String pass #ID or .ClassName with hash '#' / dot '.'
            
                copyContent('#demoTarget', 'text', #successMessageTarget);
                copyContent('.demoTarget', 'html', .successMessageTarget);
            
        
    Example 2: JavaScript
            
                const demoTarget = document.querySelector('#demoTarget');
                copyContent(demoTarget);
    
                const demoTarget2 = document.querySelector('.demoTarget2');
                copyContent(demoTarget2);
                
            
        
    Example 3: jQuery 
            
                copyContent($('#demoTarget'));
                copyContent($('.demoTarget'));
            
        
  5. getRandomHexColor() → It's return random hex color code as "#198754" Reload color