I am trying to centralise a menu when the window is resized smaller.
When the site is in full screen mode for computers, it is on the right, which is ok.
When the window is resized (for phones, tablets etc), I would like the menu to be centralised in the container…
Can anyone shed some light on what I am missing please? Inline block could solve this?
Yes use inline-block instead of float at the smaller window sizes.
e.g.
.menu ul{
text-align:center;
float:none;
}
.menu li,.menu li a {
display:inline-block;
float:none;
vertical-align:top;
}
* html .menu li,* html .menu li a{display:inline}
*+html .menu li,*+html .menu li a{display:inline}