Monday, January 2, 2012

Re: Image border

I'm loading it via a sprite in my css file:

@sprite .slide1 {
  gwt-image: 'slide1';
}


Then I mention it in a resources file:

@Source("images/slide1.jpg")
ImageResource slide1();


and link my resources file to my css:

public interface HuJaWebsiteCss extends CssResource {
  String slide1();
}


then inject within my GWT code by setting the image's styleName property to:

Resources.INSTANCE.css().slide1()


On Sat, Dec 31, 2011 at 10:19 PM, Ashwin Desikan <ashwin.desikan@gmail.com> wrote:
>
> How are you adding the image? Using the URL property or as background image via CSS property? 
>
> If u load it using URL property it does not show the border. 
>
> ~Ashwin
>
> Sent from my iPhone
>
> On Jan 1, 2012, at 8:38 AM, Pavel Byles <pavelbyles@gmail.com> wrote:
>
> Is there a way to remove the default border from a gwt image widget?
>
> in my css I have: 
>
> img {  
>
> border: none;
>
> } 
>
>
> Yet nothing changes.
>
> --
> 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.
>
> --
> 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.




--
--
Pav

--
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.

No comments:

Post a Comment