Technical Details
Forum version : #phpBB3Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Safari
Who the problem concerns : All members
When the problem appeared : It's just there.
Forum link : http://outcastwarriors.forum-motion.com/forum
Description of problem
Hello!I have been modifying the layout of my forum's index and have been using this CSS code to make my categories on the main page lay out next to one another:
Â
- Code:
#index-forum .forabg {
 display:inline-block;
 vertical-align:top;
 margin-top:1px;
 margin-bottom:1px;
 margin-left:15px;
 margin-right:0px;
 width:45%;
}
It works absolutely fine.
However, I was wondering if it was possible if the code could only affect specific categories? As in, only some of the categories line up next to one another, and the others on the same page look like default categories?
Example:
Single Category
Two Categories
Two Categories
Single Category
I have seen this Javascript code I found in this topic (link) used to affect the "Last Post, Post Number, Post Author" tables for only specific categories and I have used it:
- Code:
$(function() {
$('div.forabg:contains("TITLE OF CATEGORY") dd.topics, div.forabg:contains("TITLE OF CATEGORY") dd.posts, div.forabg:contains("TITLE OF CATEGORY") dd.lastpost').css('display','none');
});
I was wondering if something similar could be devised for the category layout?
Thank you.
EDIT: I am now worried I may have put this question in the wrong place.
Last edited by longstormicus on August 27th 2015, 6:43 pm; edited 2 times in total