/
Add customized HTML, CSS & JavaScript

Add customized HTML, CSS & JavaScript

1. Edit Confluence page, add HTML Macro for Confluence macro, paste the below example to macro body

<style> div#box { background-color: lightgrey; border: 2px solid green; border-radius:5px; padding: 10px; margin: 10px; } </style> <script> console.log('HTML Macro'); </script> <div id="box">This text is the content of the box. We have added a 10px padding, 10px margin and a 2px green border. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>

2. Publish Confluence page and see the result

 

Related content

Embed SlideShare
More like this
Embed Youtube video
Embed Youtube video
More like this
Customer terms
Read with this
Mermaid
More like this
Mermaid for Confluence
Mermaid for Confluence
More like this
HTML Macro for Confluence Home
HTML Macro for Confluence Home
More like this