Vegard, could you make it work? I faced the same issue, and now it's working. These are what I did:
1. Create public folder in where *.gwt.xml file of your project resides. Let's say it's GwtTreeTest\src\com\gwt\experiment\public 2. Create .css file with background style rule in that public folder So, create GwtTreeTest\src\com\gwt\experiment\public \GwtTreeTestCss.css, and put the following settings in it: .gwt-Tree .gwt-TreeItem-selected { background:#DDFFFF; } 3. Add the style element (which points the .css file your created at the above step with src attribute) into the .gwt.xml file In GwtTreeTest\src\com\gwt\experiment\GwtTreeTest.gwt.xml <stylesheet src="GoogleNewsExperiment1CSS.css" /> 4. Close and restart host mode. Hope those steps help. On Aug 6, 3:29 am, Vegard <vegard.gilles...@gmail.com> wrote: > I have a GWT tree on my page. When a treeitem is clicked (selected), > its background-color gets "light blue" (I think the color code is > #C3D9FF). This color is the default color on a selected item. > > I would like to change the background-color on a selected treeitem. > > In my css I have the following: > > .gwt-Tree .gwt-TreeItem-selected { > background-color: #BBBBBB !important; > text-decoration: underline; > > } > > But it does not seem to work. The selected treeitem gets underlined, > but the background-color does not change. It is still the default > color. Is this some kind of bug? > > -Vegard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---