What is the best way to center list items using bootstrap?

Mohamed Sobhy

I have this problem how can I fix it?

https://www.dropbox.com/s/f9ex0h6knsisc4d/99.JPG?dl=0

This is the HTML code:

HTML

<nav class="navbar navbar-default " role="navigation">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <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="#">Hyper Design</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav navbar-right">

        <li class="active"><a href="#">Home</a></li>
        <li><a href="#">What We Do</a></li>
        <li><a href="#">Our Works</a></li>
        <li><a href="#">Contact</a></li>
        <li><a href="#">Link</a></li>
        <button type="button" class="btn btn-default navbar-btn">Sign in</button>

          </ul>
        </li>
      </ul>


        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
Suganth G

Try this:

Simply use text-center class in the collapse tag

<div class="collapse navbar-collapse text-center" id="bs-example-navbar-collapse-1">

DEMO

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What is the best way to create a list from optional items in scala?

From Dev

What is the best way to customize Bootstrap

From Dev

What is the best way to properly center a logo on an ActionBar?

From Dev

What is the best way of using Arrays.asList() to initialize a List

From Dev

What is the best way to categorize/group and sort a list of elements using javascript?

From Dev

What's the best way to organize a display list using AS3?

From Dev

What is the best way to set the followers list using parse.com

From Dev

What is the best way to categorize/group and sort a list of elements using javascript?

From Dev

What is the best way to trim a list?

From Dev

What is the best way to trim a list?

From Dev

Best way to notify polymer of updates to list items

From Dev

What's the best way to add a list of items all having the same value

From Dev

What type of list is best for calling specific items?

From Dev

What is the best way to search a List<List<string>>?

From Dev

Bootstrap Center Navbar Items

From Dev

What is the best way to center (in the screen) a image button programmatically?

From Dev

What is best way to include List<> as parameter in class?

From Dev

What is the best way to iterate over list

From Dev

What's the best way to organize JPanels in a list?

From Dev

What is the best way of object list casting

From Dev

What are the best way to use a List on RuntimeExceptions?

From Dev

What is the best way of object list casting

From Dev

What's the best way to list size of / in Terminal?

From Dev

what is the best way to iterate a list and exit in java

From Dev

What is the best way to store a list of dates

From Dev

What is the best way to get the count of the number of items in a Django queryset?

From Dev

What is the best way to give last elements/items of DB table

From Dev

What's the best way to create items programmatically inside a Service?

From Dev

what is the best way to sort index and value of number of items

Related Related

  1. 1

    What is the best way to create a list from optional items in scala?

  2. 2

    What is the best way to customize Bootstrap

  3. 3

    What is the best way to properly center a logo on an ActionBar?

  4. 4

    What is the best way of using Arrays.asList() to initialize a List

  5. 5

    What is the best way to categorize/group and sort a list of elements using javascript?

  6. 6

    What's the best way to organize a display list using AS3?

  7. 7

    What is the best way to set the followers list using parse.com

  8. 8

    What is the best way to categorize/group and sort a list of elements using javascript?

  9. 9

    What is the best way to trim a list?

  10. 10

    What is the best way to trim a list?

  11. 11

    Best way to notify polymer of updates to list items

  12. 12

    What's the best way to add a list of items all having the same value

  13. 13

    What type of list is best for calling specific items?

  14. 14

    What is the best way to search a List<List<string>>?

  15. 15

    Bootstrap Center Navbar Items

  16. 16

    What is the best way to center (in the screen) a image button programmatically?

  17. 17

    What is best way to include List<> as parameter in class?

  18. 18

    What is the best way to iterate over list

  19. 19

    What's the best way to organize JPanels in a list?

  20. 20

    What is the best way of object list casting

  21. 21

    What are the best way to use a List on RuntimeExceptions?

  22. 22

    What is the best way of object list casting

  23. 23

    What's the best way to list size of / in Terminal?

  24. 24

    what is the best way to iterate a list and exit in java

  25. 25

    What is the best way to store a list of dates

  26. 26

    What is the best way to get the count of the number of items in a Django queryset?

  27. 27

    What is the best way to give last elements/items of DB table

  28. 28

    What's the best way to create items programmatically inside a Service?

  29. 29

    what is the best way to sort index and value of number of items

HotTag

Archive