header menu position

Posted in: Newspaper
Post count: 14

Dear guys,

some months ago i put this code to center the header menu and works ok.


.sf-menu{
margin-left: auto;
margin-right: auto;
display: table;
text-align: center;
}

but now after upgrade to 8.5 and remove one item from the menu, the menu is how center to left

how can i solve it? i want to put center again

Regards,

  • This topic was modified 8 years by m2hewitt.
Post count: 22421

Hello,

It seem now you use a stretched menu which was not available when the code was provided. The css is changed and for a stretched menu, you need this code:

@media (min-width: 768px){
.td_stretch_content .td-container {
margin-left: auto;
margin-right: auto;
display: table;
text-align: center;
}}

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.