Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Change the color of the Item Label for one page Item

51219Sep 4 2008 — edited Sep 4 2008
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
This post has been answered by 592960 on Sep 4 2008
Jump to Answer

Comments

592960
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
Marked as Answer by 51219 · Sep 27 2020
51219
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
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
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
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 2 2008
Added on Sep 4 2008
4 comments
2,630 views