XF 2.1 Set Column Width for Specific Forum

Sonnie

Active member
In XF1 we had the following code in the Extra.css template to make the right column width in one specific forum only 160px wide:
Code:
.nowrapsidebaradblock{margin:0 auto;}
.node11 .sidebar, .node11 .uix_mainSidebar { width: 160px; }

.hasRightSidebar .node11 .mainContainer {
	margin-right: -176px;
}

.hasRightSidebar .node11 .mainContent {
	margin-right: 176px;
}

.node11 .mainContainer
{
	 float: left;
	 margin-right: -170px;
	 width: 100%;
}

	.node11 .mainContent
	{
		margin-right: 170px;
	}

This code does not work in the Extra.less template in XF2.

Anyone know what code we can use to get this done in XF2?

Thanks!
 
Well... I suppose we were expecting it to cause the right column in that node to be 160px... but instead it broke a lot of stuff... header banners, forum width... it would be quite a list.
 
Perhaps it was mine... assuming that I should post here. That's why I included the previous code, but perhaps I should open a ticket at Themehouse.
 
I apologize Jon... this actually worked. After adding some other content to Extra.less... I realize I failed to close my comment above the code, and that is what broke everything. Your code works fine. Thank you!
 
No problem. Please do open up a ticket at ThemeHouse if you need help with our themes as it's quite hard for us to monitor every single post on this forum. I just happened to spot yours and was surprised that no-one had replied as it seemed fairly simple.
 
Top Bottom