How to make horizontal responsive listview inside one line with automatically left margin given.
In this tutorial we are creating custom horizontal listview with list-inline bootstrap class. This class will automatically set list elements from left to right including margin and also this list view is fully responsive. So it will automatically adjust one smaller screen devices like mobile phone, tablets…etc. So here is the complete step by step tutorial for Create horizontal-Inline listview using Bootstrap class in HTML,PHP.
How to Create horizontal-Inline listview using Bootstrap class in HTML,PHP.
Code for Inline-listview.html file.
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Inline Listview</title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h1 class="text-capitalize">Horizontal-Inline listview</h1> <ul class="list-inline"> <li>Home</li> <li>Android</li> <li>PHP</li> <li>Bootstrap</li> <li>Blogger</li> <li>WordPress</li> </ul> </div> </body> </html>
Screenshot: