This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Using Background Images in CSS with sprite

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I'm using GWT 2.4.0 with the GWT + GWTP Eclipse Plugins. I'm trying to add CSS background image using sprite:
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Image_Sprites

But I can't get it to work. Can any of you guys tell me what I'm doing wrong?

Directory Structure is:
client.resources (for CSS files and Images)
+ Resources.java
client.layout (for the overall layout using one slot to render pages)
+ MainView.ui.xml
+ MainView.java
+ MainViewPresenter.java

client.resources.Resources.java



client.Layout.MainView.ui.xml


I get following error:
20:13:15.998 [ERROR] [homepage] branding_2: Fix by adding .branding_2{}

It would be great if somebody could give me a hint.

Thanks,
Chris
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!