CSS is not accessing on HTML macro?

Karthick May 31, 2021

Tried to create a sample HTML page with CSS. using HTML macro the CSS is working on the preview mode but when i publish none of the CSS options is working.

 

<html>

<head>
<style>
.myClass {
padding: 18px;
background-color: Grey;
}
</style>
</head>
<body>
<div class="myClass">
<p>Answer will be posted here.</p>
</div>
</body>

</html>

1 answer

0 votes
Daniel June 21, 2021

Remove the <html>, <head>, </head>, <body>, </body>  and </html> tags and try again.

Had the same problem and this was the solution for me.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events