Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

CSS displays in Preview but not when I save.

AUDREY WATSON
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2015

I have attached a style sheet and referenced said style sheet in my html macro, everything looks as it should when I preview, however after saving, the changes do not show. Is this a bug in Confluence 3.5.3 (version I am using)?

 

 

2 answers

0 votes
Steven F Behnke
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.
December 11, 2015

The CSS in the preview mode is different than the CSS in Confluence. You cannot rely on the preview function to decide what CSS will be valid.

0 votes
Nic Brough -Adaptavist-
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.
December 11, 2015

Probably not - the html macros are rendered in the body, long after the header, and hence css, is loaded.

You might want to guve us a bit more detail on how you've coded the macro, but I suspect the full answer is going to be that you need to put the css in the space rather than the macro, and 3.5 is too old to be supported anyway.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events