I have two lists that I want both to be side by side each other. But also I want them to be central of the page. They both are within a pure-menu div, so when i try to put an outer div on both then they seem to hide away / disappear.
example code:
<div id="submenu" class="pure-hidden-tablet pure-hidden-desktop pull-left">
<div class="pure-menu pure-menu-open ">
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
css:
.rightMenu{
margin-left:20%;
float:left;
}
.leftMenu{
float:left;
margin-left:20%;
}
this aligns them together together on one line with the float:left. However I'm struggling to centralise them on a 100% width page.
Enclose both the lists in div tags and again put them in a single div and apply css. Try this it will solve your problem. Don't forget to tick it right.