I would like to make a menu in such a way that each item in the menu would be a separate tile (look attachment)
It's possible? I have already code:
<?php
$my_menu = array(
'menu' => 'menu-oferta',
'container' => 'padding-offer',
'items_wrap' => '%3$s'
);
wp_nav_menu( $my_menu );
?>
but I need a class that will be between separating LI, preferably a DIV. I would like to achieve this effect
<div class="class">
<li class="">
<a href=""> LINK 1 </a>
</li>
</div>
li
elements anda
elementsdisplay:block
then either float them or use grid layout to make them square and appear in a grid.li { margin: 5px; float:left; } a { display: block; width:100px; height:100px; }
would do the trick? It's a crude version of a proper solution, but it works. Thediv
is not necessary, and there are multiple ways to do it without one