jpat
April 30, 2025, 7:55am
1
Hello,
I currently have my main menu centred, but would like one of the items aligned to the right.
The header currently looks like this:
But I would like the ‘About’ menu item to be aligned right, and look like this:
Any help would be very appreciated!
Hi!
Try to add this code to Custom CSS:
@media only screen and (min-width: 1200px) {
.site-nav {
position: relative;
width: 100%;
padding: 0 130px;
}
.site-nav li:last-child {
position: absolute;
right: 0;
}
}
You can adjust the 1200px breakpoint based on your menu width.
Hi @jpat , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
jpat
April 30, 2025, 11:49pm
4
Thanks @SaraSky , this worked with a little bit of tweaking
jpat
April 30, 2025, 11:53pm
5
Oh dear, actually @SaraSky , I’ve just realised that now the ‘last-child’ in each of the dropdowns is also aligning right. Is there a way to stop this?
I see what you mean,
Here’s a small update:
@media only screen and (min-width: 1200px) {
.site-nav {
position: relative;
width: 100%;
padding: 0 130px;
}
.site-nav > li:last-child {
position: absolute;
right: 0;
}
}
jpat
May 1, 2025, 5:30am
7
That’s fixed it. Thank you so much!