How to change the background of space logo to transparent? '.avatar-img { background-color: transparent;}' not working


3 answers

It would help to know what you are trying to achieve, but have you tried simply using a .png?

Well, I have used this .png picture as a global space logo:


And I have managed to remove the border from the logo, so now it looks like this:


The problem is, that I would like to remove the white section around the picture. I assumed it is a background and therefore I have used this command to set it to transparent in the global stylesheet (and I am have not changed any of the individual spaces' stylesheets, so the problem is not in overriding the global stylesheet settings):

.avatar-img { background-color: transparent;}

Is there any way to change the background? Or remove it? I don't want to make any changes to the picture itself, such as changing its dimensions or color.

Thank you very much.


Lucia Sagatova

0 vote
img.avatar-img {
background-color: transparent !important;

To be certain that no specific style will override it.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

89 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you