0

How add some style only to GWT container, not to all widget that container contains? For example I need to style CaptionPanel's caption (make it bigger and change color). But when I add style to entire CaptionPanel then all widgets inside inherits added style too.

1 Answer 1

1

CSS 101: restrict your style to the legend element that's a child of the CaptionPanel. E.g.

myCaptionPanel.addStyleName("foo");
.foo > legend { color: red; }
/* use ".foo legend" above, without the ">" if you need to support IE6 */
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.