Forum Stats

  • 3,815,771 Users
  • 2,259,076 Discussions
  • 7,893,224 Comments

Discussions

Change the color of the Item Label for one page Item

51219
51219 Member Posts: 7
edited Sep 4, 2008 1:29PM in APEX Discussions
I have several page items that have labels. My customer would like to change the default color of some of the page items labels to be different colors on the page so they stand out. Can I do this? I can change the color of the data in the actual cell but I can't change the color of the Label.

Example:

ITEMS: <Data Here>

I populate the <Data Here> with a column from a table. I can change that but what they wish me to change is the color of the type in the label ITEMS:

Could anyone please tell me the process to do this if possible.

Thank you,
Patti
Tagged:

Best Answer

  • 592960
    592960 Member Posts: 423
    Answer ✓
    Patti,

    You can do this by adding some CSS where you have the item label.

    Edit the page item you want, goto the Label area, under label add the CSS. For example,
    <a style="background:#00ff00;">Item:</a>
    Hope this helps.

    -Chris

Answers

  • 592960
    592960 Member Posts: 423
    Answer ✓
    Patti,

    You can do this by adding some CSS where you have the item label.

    Edit the page item you want, goto the Label area, under label add the CSS. For example,
    <a style="background:#00ff00;">Item:</a>
    Hope this helps.

    -Chris
  • 51219
    51219 Member Posts: 7
    Chris,
    This is PERFECT....!! Thank you so much. What would you put if you want to change the color of the actual letters ITEM: and how would you bold it?

    This totally works...I see the background color only on that label item as Green!
  • 357241
    357241 Member Posts: 3,791
    Hello,
    style="color:#f00;font-weight:bold;"
    Since it sounds like you are just learning some CSS I suggest you spend an hour or two reading this site [http://www.w3schools.com/css/] it will save you countless hours later.


    Regards,
    Carl

    blog : [http://carlback.blogspot.com/]
    apex examples : [http://apex.oracle.com/pls/otn/f?p=11933:5]
  • 592960
    592960 Member Posts: 423
    edited Sep 4, 2008 1:29PM
    No problem, glad it worked.

    To change the color of the letters and bold, it should be something like,
    <a style="background:#00ff00; color:#EFEFEF; font-weight:bold;">Item:</a>
    You can put any CSS in there as needed.

    -Chris
This discussion has been closed.