CSS stylesheet and background image not displayed anymore

Bruno Miretti July 26, 2015

Hi,

I have several pages using CSS style sheets and for around 2 weeks now, I have an issue with background images that are not displayed anymore (whereas this worked for several months)

I've inserted a CSSstylesheet macro and added this:

div.portalpicture {
color:black; 
background-color:#0a71b4; 
background-repeat:no-repeat; 
background-position:50% 50%; 
background-image:url("https://stromasys.atlassian.net/wiki/download/attachments/15794334/website-bg01.png"); 
}

Then later I just insert a div macro using the portalpicture class but I've got only the background color, no more image. Any idea ?

I've already contacted Atlassian Support but they say the problem is related to your macro.

Thanks

Best regards

Bruno

6 answers

1 accepted

0 votes
Answer accepted
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2015

When I try it works with or without blank lines in Firefox, IE and Chrome.

So perhaps your problem really has to do with that upgrade!?

1 vote
Bruno Miretti July 27, 2015

Hi Steffen,

sorry, couldn't answer yesterday, I haven't enough points to do so (that's illogical... how to resolve an issue with 3 answers max per 24h ?)

I've received more news from Atlassian support and of course, there's another bug introduced with the latest upgrade, see CONF-38578.

Thanks for your help.

Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2015

Okay, so good luck for a quick bug fix ;-)

1 vote
Bruno Miretti July 27, 2015

Hi, thanks that's the first thing I checked and you can see from the example I gave this image can be read.

I'd say nothing has changed except Atlassian upgraded the Confluence Cloud version. I also just come to create a blank page with that code, added a div macro with portalpicture class and added several blank lines inside the div box and... well.. that works in preview, not after saving and displaying the page smile

Tried with IE11 and Firefox

0 votes
Bruno Miretti July 27, 2015

As I said, add several blank lines inside the div macro, this will display the picture and not only one line.

information I use this div macro in order to adjust the image to the window size and that worked as I expected. This worked for months until that Confluence upgrade 2 weeks ago.

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2015

Just to be sure:

You are aware that your div with the background image looks like this (correctly!) ?

2015-07-27 15_15_00-Seitenname - Steffen Heller - Lightweb.png

In other words, there isn't much more than a blue background colour. But that is not a fault but just the way the image looks like (when squashed to such a small height!):
https://stromasys.atlassian.net/wiki/download/attachments/15794334/website-bg01.png

 

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2015

Hi,

when I use your code it works. It creates a small strip with the image as background.

If the image does not appear I would first check if the image is still there, if the url is correct and if nothing else has been changed.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events