You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Fernando Wermus <fe...@gmail.com> on 2009/08/28 17:06:05 UTC
images in html or images in css
Hi all, There is something that I dont understand:
If my css style has an image declared, it works:
body {
background:url(images/FondoGeneral.jpg);
but if it is defined in the html, it doesnt
<img src="images/MarcoFoto.png" width="177" height="107">
why?
--
Fernando Wermus.
www.linkedin.com/in/fernandowermus
Re: images in html or images in css
Posted by Fernando Wermus <fe...@gmail.com>.
Thanks! It works
On Fri, Aug 28, 2009 at 1:16 PM, Pedro Santos <pe...@gmail.com> wrote:
> You can use wicket:link tag to convert the static reference
> see: http://cwiki.apache.org/WICKET/autolink.html
>
> On Fri, Aug 28, 2009 at 12:10 PM, Altuğ B. Altıntaş <altuga@gmail.com
> >wrote:
>
> > Hi;
> >
> > Because your css file location and html file location are different.
> >
> > try to reach images via url way like
> >
> > background:url(*/images/FondoGeneral.jpg*);
> >
> > or
> >
> > <img src="*/images/MarcoFoto.png*" width="177" height="107">
> >
> > Cheers...
> >
> >
> > 2009/8/28 Fernando Wermus <fe...@gmail.com>
> >
> > > Hi all, There is something that I dont understand:
> > >
> > > If my css style has an image declared, it works:
> > >
> > > body {
> > >
> > > background:url(images/FondoGeneral.jpg);
> > >
> > >
> > > but if it is defined in the html, it doesnt
> > >
> > >
> > > <img src="images/MarcoFoto.png" width="177" height="107">
> > >
> > >
> > > why?
> > >
> > > --
> > > Fernando Wermus.
> > >
> > > www.linkedin.com/in/fernandowermus
> > >
> >
> >
> >
> > --
> > Altuğ.
> >
>
--
Fernando Wermus.
www.linkedin.com/in/fernandowermus
Re: images in html or images in css
Posted by Pedro Santos <pe...@gmail.com>.
You can use wicket:link tag to convert the static reference
see: http://cwiki.apache.org/WICKET/autolink.html
On Fri, Aug 28, 2009 at 12:10 PM, Altuğ B. Altıntaş <al...@gmail.com>wrote:
> Hi;
>
> Because your css file location and html file location are different.
>
> try to reach images via url way like
>
> background:url(*/images/FondoGeneral.jpg*);
>
> or
>
> <img src="*/images/MarcoFoto.png*" width="177" height="107">
>
> Cheers...
>
>
> 2009/8/28 Fernando Wermus <fe...@gmail.com>
>
> > Hi all, There is something that I dont understand:
> >
> > If my css style has an image declared, it works:
> >
> > body {
> >
> > background:url(images/FondoGeneral.jpg);
> >
> >
> > but if it is defined in the html, it doesnt
> >
> >
> > <img src="images/MarcoFoto.png" width="177" height="107">
> >
> >
> > why?
> >
> > --
> > Fernando Wermus.
> >
> > www.linkedin.com/in/fernandowermus
> >
>
>
>
> --
> Altuğ.
>
Re: images in html or images in css
Posted by "Altuğ B. Altıntaş" <al...@gmail.com>.
Hi;
Because your css file location and html file location are different.
try to reach images via url way like
background:url(*/images/FondoGeneral.jpg*);
or
<img src="*/images/MarcoFoto.png*" width="177" height="107">
Cheers...
2009/8/28 Fernando Wermus <fe...@gmail.com>
> Hi all, There is something that I dont understand:
>
> If my css style has an image declared, it works:
>
> body {
>
> background:url(images/FondoGeneral.jpg);
>
>
> but if it is defined in the html, it doesnt
>
>
> <img src="images/MarcoFoto.png" width="177" height="107">
>
>
> why?
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>
--
Altuğ.