I’m trying to center my unordered list. When I use “text-center” class it puts a big space between the bullet and my text. Is there a different way I should approach this? Also, I can’t seem to center my pic.
I know I could use a div class=“text-center” and place my whole page in there but it messes with the unordered list as stated above.
text-center affects the content or child elements. so you could add it to the parent div to have all things centered <div class="col-xs-12 text-center">
this is also why your image is not getting centered
I don’t think you want to center the list, per se, just move it to the right. Here’s what I came up with:
<div class="container">
<div class="jumbotron">
<h1 class="text-center">Jimi Hendrix</h1>
<h4 class="text-center">The man who revolutionized guitar</h4>
<img src = "http://uptownmagazine.com/files/2012/05/Jimi-Hendrix.jpg">
<br/>
<div id = "myList">
<ul>
<li>born Johnny Allen Hendrix; November 27, 1942 – September 18, 1970</li>
<li>Born in Seattle, Washington</li>
</ul>
</div>
<p>If you would like to read more about <a href ="https://en.wikipedia.org/wiki/Jimi_Hendrix" target="_blank"> Jimi Hendrix</a>
</div>
</div>
<footer class="text-center">
<p>Written and coded by Steve DeYoung</p>
</footer>