text color change in sub menu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sangeethavijay
    New Member
    • Feb 2012
    • 1

    text color change in sub menu

    Hi to all,

    I have a XML menu.
    In submenu I need a partial text to be in red color.
    My code follows
    Code:
    <menu name="ENRBEnergyEfficiency_tab" text="Energy Efficiency">
    .
    .
    .
    <submenu text="1-10 Renewable Energy"></submenu>
    <submenu text="Reset&lt;font color='#ff0000'&gt;(*note:After reset,click calculate score to refresh score)&lt;/font&gt;"></submenu>
    What I need is, only the text "(*note:Aft er reset,click calculate score to refresh score" to be in red colour.

    But the output is coming as

    Reset<font color='#ff0000> (*note:After reset,click calculate score to refresh score)</font>">

    and no red color at all.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    the text you want to give a color needs an element of its own (i.e. you can't style only a part of a text since you can only style elements)

    Comment

    Working...