- Posts: 22
COMMUNITY FORUM
[SOLVED] K2 Vertical Spacing in Category Rows
- Andy Briggs
-
Topic Author
- Offline
- Junior Member
I thought this one would be easy to solve, but.......
I have two rows of top-level categories in K2, with five categories on the first row and four on the second. Each category container has title and image. There is an excessive vertical gap between the two rows. I cannot seem to find the CSS style which is controlling this. I have inspected the page element in Chrome but cannot find it. I am using a template called Favourite from FavThemes. I've played around with k2.css but found nothing, and if control of the vertical spacing between category rows is in the template's css then I cannot find it.
Can anybody give me any ideas? I'm sure, at some point, somebody's had the need to change the vertical spacing between K2 category rows, or might know how it's done.
Any help would be much appreciated!
Many thanks!
Andy.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Since this is a visual issue a link is needed.
Please Log in or Create an account to join the conversation.
- Andy Briggs
-
Topic Author
- Offline
- Junior Member
- Posts: 22
Not possible I'm afraid, as the site is running locally on a PC as a web server (Xampp). Anything else I can do?
Thanks!
Andy.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Please Log in or Create an account to join the conversation.
- Andy Briggs
-
Topic Author
- Offline
- Junior Member
- Posts: 22
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
You use imgur.com to share images as well.
Please Log in or Create an account to join the conversation.
- Andy Briggs
-
Topic Author
- Offline
- Junior Member
- Posts: 22
No matter. Here's the Imgur link for the screenshot. I am very grateful for any help you could give me to decrease the vertical spacing between the category rows, as annotated.
Many, many thanks!
Andy
Imgue Link: imgur.com/pezioNn
Please Log in or Create an account to join the conversation.
- Andy Briggs
-
Topic Author
- Offline
- Junior Member
- Posts: 22
Many thanks!
Andy.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Andy Briggs
-
Topic Author
- Offline
- Junior Member
- Posts: 22
All the best
Andy.
Please Log in or Create an account to join the conversation.
- Angelina den Held
-
- Offline
- New Member
- Posts: 2
I have the same problem. How dit you solve it. what did you change the k2.css?
Please Log in or Create an account to join the conversation.
- Andy Briggs
-
Topic Author
- Offline
- Junior Member
- Posts: 22
It was this in K2.css:
div.latestItemList {padding: 5px 5px 0px 0px}
Line 744. The figures above for the four padding directions may look different for you.
Play around with the figures to get your desired spacing.
Please note that this is the copy of K2.css in the template css folder, not the one in the K2 folder. Things may be different for you.
I hope this fixes things for you, but please let me know if not.
Kind regards and good luck!
Andy.
Please Log in or Create an account to join the conversation.
- Angelina den Held
-
- Offline
- New Member
- Posts: 2
Thanks for your help. I changed the padding, it work fine now.
Angelina
Please Log in or Create an account to join the conversation.