Dixie McCall Well-known member Dec 8, 2020 #1 Hello I know the property is somewhere. I would like to reduce the space between categories. See attached. Thank you! Attachments Screenshot (18)_LI.webp 19.5 KB · Views: 12
Hello I know the property is somewhere. I would like to reduce the space between categories. See attached. Thank you!
Solution Ozzy47 Dec 9, 2020 Use this: CSS: /* REDUCE SPACE BETWEEN NODES ON FORUM HOME */ .template-forum_list .block--category { margin-bottom: 5px !important; } Adjust 5px as needed.
Use this: CSS: /* REDUCE SPACE BETWEEN NODES ON FORUM HOME */ .template-forum_list .block--category { margin-bottom: 5px !important; } Adjust 5px as needed.
O Old Nick Well-known member Dec 8, 2020 #2 There is no property for that, you have to use CSS in extra.less template Upvote 0 Downvote
Dixie McCall Well-known member Dec 8, 2020 #3 Ok thank you nicodak! Does anyone have that css available? Upvote 0 Downvote
O Old Nick Well-known member Dec 8, 2020 #4 You can try this CSS: .block.block--category .block { margin-bottom: 5px; } Upvote 0 Downvote
Dixie McCall Well-known member Dec 8, 2020 #5 Thank you nicodak. I can't seem to get that to work. Upvote 0 Downvote
Ozzy47 Well-known member Dec 9, 2020 #6 Use this: CSS: /* REDUCE SPACE BETWEEN NODES ON FORUM HOME */ .template-forum_list .block--category { margin-bottom: 5px !important; } Adjust 5px as needed. Upvote 0 Downvote Solution
Use this: CSS: /* REDUCE SPACE BETWEEN NODES ON FORUM HOME */ .template-forum_list .block--category { margin-bottom: 5px !important; } Adjust 5px as needed.
O Old Nick Well-known member Dec 9, 2020 #7 Sorry, this one works CSS: .block.block--category { margin-bottom: 5px; } Upvote 0 Downvote
Ozzy47 Well-known member Dec 9, 2020 #9 You're welcome, happy to help out when I can. Upvote 0 Downvote
O Old Nick Well-known member Dec 9, 2020 #10 Ozzy47 said: CSS: /* REDUCE SPACE BETWEEN NODES ON FORUM HOME */ .template-forum_list .block--category { margin-bottom: 5px !important; } Click to expand... @Ozzy47 this is a cool way to call a template !! .template-forum_list i always used this syntax [data-template="forum_list"] BTW why it's necessary to call the forum_list template here ? Where categories are displayed except forum_list ? And both code works without !important as i tried them. Upvote 0 Downvote
Ozzy47 said: CSS: /* REDUCE SPACE BETWEEN NODES ON FORUM HOME */ .template-forum_list .block--category { margin-bottom: 5px !important; } Click to expand... @Ozzy47 this is a cool way to call a template !! .template-forum_list i always used this syntax [data-template="forum_list"] BTW why it's necessary to call the forum_list template here ? Where categories are displayed except forum_list ? And both code works without !important as i tried them.
Ozzy47 Well-known member Dec 9, 2020 #11 Not sure where categories might be displayed, but thought I’d play it safe. Upvote 0 Downvote
Ozzy47 Well-known member Dec 9, 2020 #12 nicodak said: And both code works without !important as i tried them. Click to expand... Usually !important is not needed, but if some css is after it that adjusts the same or similar, it would be overridden by the latter one. So it’s just a fail safe in this occasion. Upvote 0 Downvote
nicodak said: And both code works without !important as i tried them. Click to expand... Usually !important is not needed, but if some css is after it that adjusts the same or similar, it would be overridden by the latter one. So it’s just a fail safe in this occasion.