I want to apply custom css class to the HTML tags in confluence. I tried adding css class in HTML macro as well as in css Macro. but the style is reflecting only in the preview, when i save and view the page style is not available, any advice
HTML Macro:
<head>
<style>
.myClass {
padding: 18px;
background-color: Grey;
}
</style>
</head>
<body>
<div class="myClass">
<p>Answer will be posted here.</p>
</div>
</body>
Css Macro
.myClass{ padding: 18px; background-color: Grey;
}
When i save and publish
Well the Cloud version does not support custom CSS, a downside to that version. What you need to do is to use the browsers inspect function to look at three things:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.