- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Struggling to center menu text
SOLVEMay 30, 2017 8:33 AM
I'm using margin-left/-right to position my primary menu. Works OK for our EN site but borks for our DE site. I'm just looking to make use of the full width for any/all menus, but centered.
Relevant CSS in our stylesheet appears to be
.custom-menu-primary .hs-menu-wrapper > ul{
background:{{ ulColor }};
margin-left: 25%;
margin-right: 20%;
{{ transition("all .1s ease-in-out") }}
}
I've tried adjusting width, text-align: center, margin-left/-right: auto, etc. to no avail. Is there something about the menu widget that is preventing my attempts at centering?
WmF
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
May 30, 2017 11:23 AM
Stefen,
Perfect! Thanks very much.
For some reason 'your' line numbers are very different from the ones I see in the style sheet, but the code segments are easy enough to find.
Thanks again.
WmF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content