I'm having trouble getting my list to display horizontally. I've tried using display: inline
, as well as float: left;
and position:center
, but can't seem to get it centered properly.
JavaScript
Array.prototype.map.call(document.querySelectorAll('.memberinfo'), function(el) {
el.style.display = 'inline';
});
CSS
.groupmember ul
{
margin:0;
list-style-type: none;
text-align:center;
}
.groupmember ul li
{
display:inline;
}