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.

#110314 Background color for blocks

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 Wednesday, 11 May 2022 10:50 BST

wolfguard
Hello,

is there a way to set a background color for an article with jce editor? Or is it possible to set a background color or an image as a background in a block?

Thanks.

Tobias

Ryan
is there a way to set a background color for an article with jce editor?
You could probably do this by wrapping all the content in a div tag with a special class attribute that styles the div (best done in the Code editor), eg:

<div class="content-bg-1">
Your content...
</div>
then add the class to your template stylesheet, eg:

.content-bg-1 {
    background-color: #eee;
}
but how effective this is will depend on how your template lays out the article content.
Or is it possible to set a background color or an image as a background in a block?
Assuming you mean a column created using the Columns tool, again the best way is to use a css style in your template stylesheet, eg:

.content-bg-1 {
    background-color: #eee;
}
and then to select and apply this to the Columns using the Classes list in the Columns dialog, which I have just added in JCE Pro 2.9.21 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

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

wolfguard
Hello there.

How to use this Classes list in the Columns dialog? In my case it is empty. When i insert something and save, it is still empty.

Thanks.

Ryan
Is the Styles list in the editor toolbar also empty?

Ryan Demmer

Lead Developer / CEO / CTO

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

wolfguard
It looks for me like in the attached pictures.

Attachments

Ryan
What items are available in the Classes list in the Columns dialog?

Ryan Demmer

Lead Developer / CEO / CTO

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

wolfguard
Nothing...

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

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