On 23 déc, 17:15, Tim K <timk...@gmail.com> wrote:
> 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?

No. A CheckBox widget is composed of a checkbox and label, wrapped in
a <span>

> Can a java method add a class to the input element?

You can use a SimpleCheckBox instead of a CheckBox, to just have the
<input type=checkbox>.

But you can also just tweak your CSS to target the input child of
the .gwt-CheckBox:

.gwt-CheckBox input {
   width: 1em;
   height: 1em;
   padding: 0;
   margin: 0;
}


--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to