Mehe Posted December 28, 2015 Share Posted December 28, 2015 Who can help me? In short: the problem is there are spaces between the names of sub categories. see picture. How can I delete these spaces? Link to comment Share on other sites More sharing options...
Daresh Posted December 28, 2015 Share Posted December 28, 2015 Please share a link to the live page. Link to comment Share on other sites More sharing options...
Mehe Posted December 28, 2015 Author Share Posted December 28, 2015 cheapparfum.nl Link to comment Share on other sites More sharing options...
Mehe Posted December 28, 2015 Author Share Posted December 28, 2015 Version of PrestaShop is 1.6.1.2 Link to comment Share on other sites More sharing options...
Daresh Posted December 28, 2015 Share Posted December 28, 2015 The thing here is that the menu elements are floated to the left and set to 20% width to make them go from left to right in rows. But when one item is higher than another the floating looks like it does now. You could remove the float and set column count for the menu, which would remove the gaps, but the items would be aligned in columns, top to bottom, like this: Link to comment Share on other sites More sharing options...
Mehe Posted December 28, 2015 Author Share Posted December 28, 2015 Hi Daresh, Great!! That is exactly what I need. How can I do that? Thank you. Link to comment Share on other sites More sharing options...
Daresh Posted December 28, 2015 Share Posted December 28, 2015 In the css. .sf-menu > li > ul > li { float: left; width: 20%; padding-right: 15px; } Delete the float and width. .sf-menu > li > ul { padding: 26px 30px 31px; width: 100%; -webkit-column-count: 5; -moz-column-count: 5; column-count: 5; } Add the column count rules. This is not a perfect solution, sometimes an item will start at the bottom and continue in the next column, but test it and see for yourself. Link to comment Share on other sites More sharing options...
Mehe Posted December 28, 2015 Author Share Posted December 28, 2015 It works!! Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now