Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » css not working
css not working [message #1781653] Sun, 11 February 2018 00:42 Go to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 145
Registered: February 2013
Senior Member
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 21:25 Go to previous message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 221
Registered: February 2011
Senior Member
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: Tue Sep 21 22:52:49 GMT 2021

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

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

Back to the top