Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Bryan Guffey
Community Champion
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
Contributor
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