XF 1.4 How to remove the border (content) "main content"

Betclever

Well-known member
Hello,

I want to remove the main content so remove the white block around the categories...

I have tried to use this CSS code but it removes everything :

.mainContent {
display-none;
}

I can add or remove a border like the blue one but I can't remove the white content.

Capture_d_cran_2015_01_05_19_52_13.png


Thanks for your help,
 
Hello @Betclever,

That's controlled by @sectionMain:
Screen Shot 2015-01-07 at 3.03.08 pm.webp

By default that colour is inherited by@contentBackground in your palette:
Screen Shot 2015-01-07 at 3.03.18 pm.webp

You can either just "Clear value" or change @contentBackground to "Clear value" instead.

Edit: border should be there too which you can "Clear value" too.
 
Thanks it works Optic.
However, how can I remove the grey border and the shadow?
Possibility to move up the section main to align it with the sidebar?

329860Capturedcran20150107140022.png
 
The grey border and shadow should be on the same Building Blocks style property you used to remove the background. Check the border and miscellaneous sections there.

But to be 100% sure we would need a link to your forum to inspect the CSS of your forum style.
 
@Betclever if you still couldn't find it in Style Properties try adding these to your EXTRA.CSS template:
Code:
.mainContent {
background-color: transparent;
border: none !important;
box-shadow: none !important;
}

I've tested that and that appears to remove what you want on your style.
 
Top Bottom