Offset Columns in Bootstrap

BootstrapWeb DevelopmentCSS Framework

An offset is used to push columns over for more spacing. To use offsets on large displays, use the .col-md-offset-* classes. 

You can try to run the following code to learn how to work with offset columns in Bootstrap −


 Live Demo

<!DOCTYPE html>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
      <div class = "box">
         <h1>Heading One</h1>
         <div class = "row" >
            <div class = "col-xs-6 col-md-offset-3" style = "background-color: #dedef8;
               box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
               <p>This is demo text. This is demo text.</p>
Updated on 12-Jun-2020 08:59:08