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
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

136 views 3 4
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