Changing container background color via CSS

MattKan
Kilo Contributor

Could anybody walk me through changing the background color for a container in the Service portal? I am assuming you need to use a CSS class since there is no built in functionality for changing background color for individual containers, rows, and columns, but maybe there is a better approach.

 

Thanks!

Matthew

1 ACCEPTED SOLUTION

Shambhu5
Kilo Guru

Hi Matt,

Yes, you are right! You will have to use CSS Class for this requirement along with the code as:

container{

background-color: <name of the color>

}

However, I have also tried to change CSS of a container through Edit Page Properties but what it does is, it changes all Containers color (in identical manner) since it is applied for entire Page. (my bad I tried this)

Another approach which I will suggest is, since you will be creating widgets for those containers, you can also provide appropriate <div> & <class> at the HTML side and use them in CSS-SCSS section for configuring/changing background-color.

Hope it helped!

Mark my answer as Correct/Helpful if that resolves your query.

Regards,
Vishrut
find_real_file.png

View solution in original post

5 REPLIES 5

Tehilla Garfink
Tera Contributor

Refer to this article on the developer site that shows how to update the container color without using CSS.