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 votes

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 votes
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
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,158 views 2 13
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