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
From 09:00 To 17:00 Europe/London (BST)

Please post your question in the Forum and we will get back to you as soon as we can.

  Friday, 11 February 2022
  7 Replies
  1.2K Visits
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
more than a month ago
·
#110357
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

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

2 weeks ago
·
#110973
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.
2 weeks ago
·
#110974
Is the Styles list in the editor toolbar also empty?

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

2 weeks ago
·
#110975
It looks for me like in the attached pictures.
2 weeks ago
·
#110980
What items are available in the Classes list in the Columns dialog?

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

2 weeks ago
·
#111006
Nothing...
2 weeks ago
·
#111013

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

  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!