Loading ...
Sorry, an error occurred while loading the content.

43063Re: Styling Text in TreeView

Expand Messages
  • cjavajim
    Dec 30, 2008
      --- In ydn-javascript@yahoogroups.com, "cklester" <ydn-javascript@...>
      wrote:
      >
      > I'm trying to add color and background-color styling to a treeview
      > list and it's not working as I expect.
      >
      > The following does not work:
      > <!-- this is in the header of course-->
      > <style type="text/css">
      > #network_view ul li.assoc {color:blue;background-color:yellow;}
      > #network_view ul li.cust {color:green;}
      > </style>
      >
      > <!-- somewhere in the body-->
      > <div class="yui-skin-sam">
      > <div id="network_view">
      > <ul>
      > <li class="assoc">Dangerously, Johnny
      > <ul>
      > <li class="cust">Doyle, Carmen
      > <ul>
      > </ul>
      > </div>
      > </div>
      >
      > How can I style those two <li> tags?
      >
      > I even tried something like this:
      >
      > <li><span style="color:green;">Dangerously, Johnny</span>
      >
      > but that didn't work either.
      >


      You may find this helpful. (Especially if you don't have a DOM
      Inspector handy!)

      http://developer.yahoo.com/yui/treeview/#style
    • Show all 7 messages in this topic