Tuesday, January 6, 2015

change CSS style of a single GWT widget

Hi,

I would like to style the content area of a TabLayoutPanel, but only for a specific one.

I know that I can change it by placing the following into the CSS file included by my host page:

.gwt-TabLayoutPanel .gwt-TabLayoutPanelContentContainer
{
  border-color: #ccc;
  border-style: solid;
  background: #ff0000;
}

But this affects all instance of TabLayoutPanel. How can I apply it to only one instance?

I know how to put CSS into a client bundle, but how can I apply that to a single widget?

Thanks
Magnus


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment