It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Embedding CSS in custom field

Raju KC Mar 21, 2013

How to embed CSS class in custom field?

I just want to display custom field to right side with the css-class [<li class="item item-right">].

Any Css guide would be great!!!!!

2 answers

1 accepted

0 votes
Answer accepted
Raju KC Mar 31, 2013

I got the answer.

0 votes
Jos Braaksma Mar 21, 2013

You want to look at javascript, not css.

get some html dev plugin for your browser to see what's going on (to get the id mainly) and try something along those lines for the field's description:

<script language="JavaScript" type="text/javascript">
    <!--
        document.getElementById('targetid').className += " item item-right";
} // --> </script>

wholly untested code btw. see http://stackoverflow.com/questions/195951/change-an-elements-css-class-with-javascript for more info.

cheers, Jos

Raju KC Mar 26, 2013

Above code does not help.

Any other solutions

Raju KC Mar 31, 2013

I got the answer.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

837 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you