You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#108997 Column background colour

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Friday, 08 October 2021 09:50 BST

PhilMay
Hello,
How do I add a background colour to a JCE Column, please?

Ryan
You will need to do this with a custom css style in your template stylesheet, which can then be applied to the column using the Styles list. For example, add the following to your template stylesheet:

.column_bg {
    background-color: #eee;
}
then in the editor, click in one of the columns, and in the Path at the bottom of the editor, click on column to select that column. Select the column_bg style from the Styles list to apply it to the column. If you want to apply the background to the whole Columns layout, select columns in the Path and apply the Style as before.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

PhilMay
Thank you, code below, is this correct, please?

<div class="wf-columns wf-columns-stack-medium wf-columns-layout-auto" data-wf-columns="1">
<div class="wf-column"><span class="column_bg">Re-Tac 150 White polymeric printable PVC film with ReTac® ultra removable adhesive technology is designed for graphics that need to be easily installed, removed and re-positioned. Find out more</span></div>
<div class="wf-column">
<p><img src="https://www.joomlacontenteditor.net/images/homepage-slider-images/Drytac-ReTac-150-250x250.png" alt="Drytac ReTac 150 250x250" width="250" height="250" /></p>
</div>


Ryan
No, because the column_bg class should be applied to the
, not to a span.

Did you select the column using the Path at the bottom of the editor?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

PhilMay
I have added to the Custom.css, but column is not appearing in the Styles list.

Is this a Cache problem?

.column_bg {
background-color: #eee;
}

PhilMay
Still not seeing the Style in the list, I added it manually -

<div class="wf-columns wf-columns-stack-medium wf-columns-layout-auto" data-wf-columns="1">
<div class="column_bg wf-column">
<p>text here</p>
</div>
<div class="wf-column">
<p> </p>
</div>
</div>

M T's

hardys
Have you configured JCE to use your custom.css?

https://www.joomlacontenteditor.net/support/tutorials/editor/create-a-custom-editor-stylesheet

Section "Configure JCE to use the new stylesheet"

Ryan
@PhilMay - which template are you using?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.