Mark,
I'm not sure about your ComboBox. That's a Gwt-Ext widget, something
whose internal structure I'm not familiar with, and for support with
that you ought to consult the right group.
However, I can clear up a CSS misunderstanding for you. The 'dot' at
the beginning of a CSS selector means that the string of characters
that follow are a style class name, so ".img" would apply to elements
that look like this:
<div class="img">stuff</div> <!-- this is not an img element -->
That's not what you want. Without the 'dot', the selector refers to
an element type, in this case all <img> elements. The question is
whether you want that kind of margin setting on all images, including
those in your ComboBox. I suspect not. In order to cancel that, you
need to either override that same rule
img { margin-top: 0;}
or supercede it in the cascade with a more specific rule. For
example, if the <img> element in your ComboBox has a CSS class of
"foo", then you can do
.foo { margin-top: 0;}
There may be many ways, depending on the tag structure and the
associated style classes, to accomplish this, but it entails detailed
knowledge of how the widget is composed and classed, which I don't
have.
Hope this gives you a start...
Walden
On Sep 30, 4:42 am, "mark morreny" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am getting a strange ComboBox problem where the pulldown is displayed
> properly but the scroll image is displayed below the pulldown box instead of
> on the right of the pulldown box.
>
> I found the following thred from the Internet:
> (http://gwt-ext.com/forum/viewtopic.php?f=8&t=1975&p=7459#p7459)
> *I found the problem and while I do feel a bit stupid, I will post it here
> to warn others.
>
> The GWT application creator produces a sample CSS file that for some crazy
> reason includes:
>
> img {
> margin-top: 20px;
>
> }*
>
> I tried pasting:
> .img {
> *margin-top: 20px;* }
>
> into my css file, but it still does not fix the problem. Does anyone know
> how I can get ComboBox displayed properly?
>
> Thanks,
> Mark
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---