Left aligning <ul> in mega menu using Trade theme.

Solved

Left aligning <ul> in mega menu using Trade theme.

Randal
Excursionist
18 0 7

I'm using a split-into-columns <ul> in my mega-menu and trying to left Align it to the same horizontal position as my logo above and products below but nothing is working. If the <ul> has no set width then it aligns perfectly but there's too much distance between the columns (it's not a column-gap issue, I want them bunched up on the left). If I set a fixed width then the spacing is right but the whole <ul> is center aligned. floating left isn't a solution I can make work because it's too far left and adding padding or margins means it doesn't stay in the correct position when changing resolutions or zooming in etc. Can anyone help me left align the <ul> feels like it should be so easy but I've hit a brick wall. Thanks.

 

https://4330ea-89.myshopify.com/

Accepted Solution (1)
dws_pvt_ltd
Shopify Partner
288 56 81

This is an accepted solution.

Hello @Randal, Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS/Section CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following code at the end of the file. 

 

.mega-menu[open] .mega-menu__content ul.mega-menu__list.page-width.mega-menu__list--condensed {
    margin-left: 0;
    padding: 0 0 0 7px;
    right: 0 !important;
}

 

See the screenshot below,

Screenshot from 2024-08-09 09-48-08.pngScreenshot from 2024-08-09 09-48-13.png

 

 

Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.

Helpful? then please Like and Accept the Solution.
For any inquiries, please feel free to contact via WhatsApp and Email: sales@dolphinwebsolution.com.
For more information visit our website Dolphin Web Solution Pvt Ltd.

View solution in original post

Replies 8 (8)

parth_ghelani
Shopify Partner
229 32 31

Hello @Randal 

Can you please share the actual screenshot how you want to make it ?

So i can check and suggest you to make changes according to that.

Was your question answered? Mark it as an Accepted Solution.
If you need further assistance to optimize your store, please don't hesitate to reach out. I'm committed to providing you with my full support and ensuring that you get the most out of our collaboration.

Get in Touch: You can contact me directly at softkarts@gmail.com for any questions or concerns
Randal
Excursionist
18 0 7

likeThis.jpg

parth_ghelani
Shopify Partner
229 32 31

all you want is to show the submenu links aligned with the logo vertically right ?

Was your question answered? Mark it as an Accepted Solution.
If you need further assistance to optimize your store, please don't hesitate to reach out. I'm committed to providing you with my full support and ensuring that you get the most out of our collaboration.

Get in Touch: You can contact me directly at softkarts@gmail.com for any questions or concerns
Randal
Excursionist
18 0 7

No, I want the sub menu links (the 1px red box) to be aligned to the left like it is in the picture, currently its horizontally center aligned.

dws_pvt_ltd
Shopify Partner
288 56 81

Hello @Randal, Please let me know you want like the screenshot below?

dws_pvt_ltd_0-1723097219514.png

 

Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.

Helpful? then please Like and Accept the Solution.
For any inquiries, please feel free to contact via WhatsApp and Email: sales@dolphinwebsolution.com.
For more information visit our website Dolphin Web Solution Pvt Ltd.
Randal
Excursionist
18 0 7

No, I don't want it fully left, I want it left inline with the rest of the site. The picture below shows exactly what I want.

 

likeThis2.jpg

dws_pvt_ltd
Shopify Partner
288 56 81

This is an accepted solution.

Hello @Randal, Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS/Section CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following code at the end of the file. 

 

.mega-menu[open] .mega-menu__content ul.mega-menu__list.page-width.mega-menu__list--condensed {
    margin-left: 0;
    padding: 0 0 0 7px;
    right: 0 !important;
}

 

See the screenshot below,

Screenshot from 2024-08-09 09-48-08.pngScreenshot from 2024-08-09 09-48-13.png

 

 

Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.

Helpful? then please Like and Accept the Solution.
For any inquiries, please feel free to contact via WhatsApp and Email: sales@dolphinwebsolution.com.
For more information visit our website Dolphin Web Solution Pvt Ltd.
Randal
Excursionist
18 0 7

This wasn't right but it has now been solved anyway. Thanks for your help!