Offset Columns In Bootstrap - Tutorialspoint

  • Home
  • Library
  • Online Compilers
  • Jobs
  • Whiteboard
  • Tools
  • Articles
  • Write & Earn
  • Courses
  • Certifications
Menu Categories Login
  • Switch theme
  • SQL
  • HTML
  • CSS
  • Javascript
  • Python
  • Java
  • C
  • C++
  • PHP
  • Scala
  • C#
  • Tailwind CSS
  • Node.js
  • MySQL
  • MongoDB
  • PL/SQL
  • Swift
  • Bootstrap
  • R
  • Machine Learning
  • Blockchain
  • Angular
  • React Native
  • Computer Fundamentals
  • Compiler Design
  • Operating System
  • Data Structure and Algorithms
  • Computer Network
  • DBMS
  • Excel
Technical Questions and Answers
  • Trending Categories
  • Data Structure Data Structure
  • Networking Networking
  • RDBMS RDBMS
  • Operating System Operating System
  • Java Java
  • MS Excel MS Excel
  • iOS iOS
  • HTML HTML
  • CSS CSS
  • Android Android
  • Python Python
  • C Programming C Programming
  • C++ C++
  • C# C#
  • MongoDB MongoDB
  • MySQL MySQL
  • Javascript Javascript
  • PHP PHP
  • Physics Physics
  • Chemistry Chemistry
  • Biology Biology
  • Mathematics Mathematics
  • English English
  • Economics Economics
  • Psychology Psychology
  • Social Studies Social Studies
  • Fashion Studies Fashion Studies
  • Legal Studies Legal Studies
  • Selected Reading
  • UPSC IAS Exams Notes
  • Developer's Best Practices
  • Questions and Answers
  • Effective Resume Writing
  • HR Interview Questions
  • Computer Glossary
  • Who is Who
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 −

Example

Live Demo

<!DOCTYPE html> <html> <head> <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> </head> <body> <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> </div> </div> </div> </body> </html>

George John George John Updated on: 12-Jun-2020

6K+ Views

Từ khóa » Html Col Offset