TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rajneesh Chaubey
NA
2.9k
235k
How to align bootstrap div horizontally on the page?
Jan 11 2018 12:51 PM
Hi Please look at the code:-
<form runat="server">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="panel panel-primary">
<div class="panel-heading text-center">
<h3 class="panel-title">
<span class="glyphicon glyphicon-bookmark"></span> Quick Shortcuts</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="text-center">
<a href="#" class="btn btn-danger btn-block" role="button"><span class="glyphicon glyphicon-list-alt"></span> <br/>Apps</a>
<a href="#" class="btn btn-warning btn-block" role="button"><span class="glyphicon glyphicon-bookmark"></span> <br/>Bookmarks</a>
<a href="#" class="btn btn-primary btn-block" role="button"><span class="glyphicon glyphicon-signal"></span> <br/>Reports</a>
<a href="#" class="btn btn-primary btn-block" role="button"><span class="glyphicon glyphicon-comment"></span> <br/>Comments</a>
<a href="#" class="btn btn-success btn-block" role="button"><span class="glyphicon glyphicon-user"></span> <br/>Users</a>
<a href="#" class="btn btn-info btn-block" role="button"><span class="glyphicon glyphicon-file"></span> <br/>Notes</a>
<a href="#" class="btn btn-primary btn-block" role="button"><span class="glyphicon glyphicon-picture"></span> <br/>Photos</a>
<a href="#" class="btn btn-primary btn-block" role="button"><span class="glyphicon glyphicon-tag"></span> <br/>Tags</a>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
The output i am getting is like this:-https://i.stack.imgur.com/A3C0B.png
It is on the right side of the page. I want it to be on horizontally centered and responsive too.
Please help..
Reply
Answers (
3
)
knockout JS What is the Reason for having 4.3 ?
write a test case for the following requirement: