C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Introduction To Bootstrap
WhatsApp
Ananth G
8y
4.1
k
0
1
25
Blog
Bootstrap
Bootstrap is a powerful mobile-first front-end framework. It is very helpful in faster and easier web development by using HTML, CSS, and JavaScript.
Bootstrap is open source and there are many Bootstrap sample applications already submitted on GitHub.
Browser Support
Most of the browsers support Bootstrap framework.
Advantages of Bootstrap
Easy to get started
Responsive design
Cross-browser support
Easy to customize
Encourages using LESS
Supports useful jQuery plugins
Many custom jQuery plugins available
Mobile-first
Bootstrap Packages
Bootstrap has a responsive mobile-first grid that allows us to develop our own design too.
Bootstrap has some extremely useful jQuery plugins to show Modal, DropDown,Tooltip, and Carousel.
Download Bootstrap
We can download the latest version of Bootstrap from
http://getbootstrap.com
.
Bootstrap Grid System
Bootstrap has a responsive, mobile-first grid.This layout is responsive with mobile devices and laptops.
Bootstrap Grid System can be appropriately split in up into 12 columns according to the design.
Working of Bootstrap Grid System
Grid systems are used for creating page layouts through a series of rows and columns.It should be placed within columns, and only columns may be immediate children of rows.
Sample Menu
We can create responsive menu by using Bootstrap framework.
The below code must be added to the head tag.
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1"
>
<
link
rel
=
"stylesheet"
href
=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
>
<
script
src
=
"https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"
>
</
script
>
<
script
src
=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
>
</
script
>
And, the following code must be added to the body tag.
<
nav
class
=
"navbar navbar-default"
>
<
div
class
=
"container-fluid"
>
<
div
class
=
"navbar-header"
>
<
button
type
=
"button"
class
=
"navbar-toggle collapsed"
data-toggle
=
"collapse"
data-target
=
"#bs-example-navbar-collapse-1"
aria-expanded
=
"false"
>
<
span
class
=
"sr-only"
>
Toggle navigation
</
span
>
<
span
class
=
"icon-bar"
>
</
span
>
<
span
class
=
"icon-bar"
>
</
span
>
<
span
class
=
"icon-bar"
>
</
span
>
</
button
>
<
a
class
=
"navbar-brand"
href
=
"#"
>
Bootstrap Menu Sample
</
a
>
</
div
>
<
div
class
=
"collapse navbar-collapse"
id
=
"bs-example-navbar-collapse-1"
>
<
ul
class
=
"nav navbar-nav"
>
<
li
class
=
"active"
>
<
a
href
=
"#"
>
Home
<
span
class
=
"sr-only"
>
(current)
</
span
>
</
a
>
</
li
>
<
li
>
<
a
href
=
"#"
>
Menu2
</
a
>
</
li
>
<
li
class
=
"dropdown"
>
<
a
href
=
"#"
class
=
"dropdown-toggle"
data-toggle
=
"dropdown"
role
=
"button"
aria-haspopup
=
"true"
aria-expanded
=
"false"
>
Menu2
<
span
class
=
"caret"
>
</
span
>
</
a
>
<
ul
class
=
"dropdown-menu"
>
<
li
>
<
a
href
=
"#"
>
Sub-Menu1
</
a
>
</
li
>
<
li
>
<
a
href
=
"#"
>
Sub-Menu2
</
a
>
</
li
>
<
li
>
<
a
href
=
"#"
>
Sub-Menu3
</
a
>
</
li
>
<
li
role
=
"separator"
class
=
"divider"
>
</
li
>
<
li
>
<
a
href
=
"#"
>
Sub-Menu4
</
a
>
</
li
>
<
li
role
=
"separator"
class
=
"divider"
>
</
li
>
<
li
>
<
a
href
=
"#"
>
Sub-Menu5
</
a
>
</
li
>
</
ul
>
</
li
>
</
ul
>
</
div
>
</
div
>
</
nav
>
Bootstrap
People also reading
Membership not found