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
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
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

993 views 23 13
Join discussion

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