Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » css not working
css not working [message #1781653] Sat, 10 February 2018 19:42 Go to next message
Eclipse UserFriend
There is simple code

"<span class='numberCircle'>" +obj.get(key) + "</span>"

inside css theme created

span.numberCircle {
background: #ff0000;
color: #fff;
padding: 5px 20px;
border-radius: 50%;
}

for element set setData(RWT.MARKUP_ENABLED, Boolean.TRUE);

but doesn't work

if direct set <span style=''bla bla bla'>" +obj.get(key) + "</span>" works!!!
What's problem with css?

Re: css not working [message #1781668 is a reply to message #1781653] Sun, 11 February 2018 16:25 Go to previous message
Eclipse UserFriend
I thought the CSS files for your theme were processed by RWT and not actually sent to the browser.

If you want to directly use CSS styles in your marked up widgets, you need a separate CSS file and you need to reference it with org.eclipse.rap.rwt.client.service.ClientFileLoader.requireCss(String)
Previous Topic:custom progress view
Next Topic:How to create Third Party Licenses info
Goto Forum:
  


Current Time: Thu Jul 03 00:01:43 EDT 2025

Powered by FUDForum. Page generated in 0.23727 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top