The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events