Forums

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

How do I right justify content in a Text Gadget?

Brenda Henderson
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!
November 15, 2023

I am using the Text gadget on my dashboard to provide information to the team.  I have a section of the gadget that is centered and another section I want right justfied.

<center>
<font size="+2" color="#4B0082">
<b>
THIS IS THE AREA WHERE THE TEXT IS CENTERED AS EXPECTED
<br>
<right>
<font size="+2" color="#006400">
<b>
THIS IS THE AREA I WANT TEXT TO RIGHT JUSTIFY
BUT IT WILL NOT
IT REMAINS CENTERED
<br>

How do I get the section to justify right?

1 answer

1 accepted

1 vote
Answer accepted
Kseniia Trushnikova
Community Champion
November 15, 2023

Hi @Brenda Henderson,

The tag center is deprecated, use the CSS property text-align instead. Please refer to HTML documentation, for example https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center.

Your HTML for the gadget Text should look like this:

<p style="text-align: center; color: #4B0082; font-size: x-large; font-weight: bold;">
THIS IS THE AREA WHERE THE TEXT IS CENTERED AS EXPECTED
</p>
<p style="text-align: right; color: #006400; font-size: x-large; font-weight: bold;">
THIS IS THE AREA I WANT TEXT TO RIGHT JUSTIFY
BUT IT WILL NOT
IT REMAINS CENTERED
</p>

Please be informed that the Text gadget is deprecated in Jira 9.11, see release notes. You may want to use the Rich Text gadget instead.

Brenda Henderson
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!
November 16, 2023

Thanks for the info.  It has resolved my quandry

Like Dave Rosenlund _Trundl_ likes this
Kseniia Trushnikova
Community Champion
November 16, 2023

@Brenda Henderson, happy to help! Please click the Accept answer button to mark this question as solved.

Like Dave Rosenlund _Trundl_ likes this

Suggest an answer

Log in or Sign up to answer