How do I apply CSS formatting to the iframe macro in Confluence Cloud?

Bryan Guffey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2024

Hello all-

I swear I should know this, but I guess I get to show my lack of understanding, and I can't find the answer anywhere: 

What is the format and structure I need to put into the iFrame macro configuration in order to apply CSS styling to the content inside? 

I've tried everything I can think of, and nothing is working, which tells me that I'm way off base. 

TIA 

CleanShot 2024-10-29 at 17.31.49@2x.png

 

1 answer

0 votes
Jens Schumacher October 30, 2024

The content within an iframe is isolated from the parent page due to same-origin policy restrictions, which prevent external CSS from directly affecting the iframe’s content.

In other words, the CSS styles likely only apply to the iframe itself, not the content within the iframe. 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events