Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

HTML macro in an Excerpt macro spreads virulently...

If one innocently places an HTML macro in an Excerpt macro, and adds some CSS to the HTML macro, such as

<style> p, ul, ol {color: #3D3D3D !important; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 18px;} .bv-content-wrapper.aui-page-panel-outer-content {background-color: #FEF9F5 !important;} </style>

that style gets applied not only on the page with the macro - but EVERYWHERE; even when there is no Excerpt Include macro ANYWHERE. 

What's going on!?

Cheers 

1 answer

0 votes
Bill Bailey Community Leader Nov 30, 2021

Because your rule overwrites the existing rule for all p, ul, and ol tags on the page. The solution is to wrap whatever it is you want to style inside a classed div, then rewrite your rule to be class specific.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

43,092 views 30 134
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you