Wednesday, December 23, 2009

Styling CheckBox

I want to change the size of a com.google.gwt.user.client.ui.CheckBox
so that it grows/shrinks. I am using a Chrome Browser. It zooms in
and out with Ctrl-Plus and Ctrl-Minus.

This entry in my css file had no effect.
.gwt-CheckBox {
width: 1em;
height: 1em;
padding: 0;
margin: 0;
}

Chrome's inspector displays this HTML.
<span class="gwt-CheckBox">
<input type = "checkbox" ...

Should class="gwt-CheckBox" be on the input element?
Can a java method add a class to the input element?

I have a css work around that is working for me, but it will affect
all checkboxes.
input[type="checkbox"]{
width: 1em;
height: 1em;
padding: 0;
margin: 0;


}
Thanks,
Tim K.

--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate