Forums

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

CSS is not accessing on HTML macro?

Karthick
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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