CSS displays in Preview but not when I save.

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 vote

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.

0 vote
Steven Behnke Community Champion Dec 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.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 14 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

99 views 2 4
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