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
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 fernando.wer...@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
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ş alt...@gmail.comwrote: 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 fernando.wer...@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
Thanks! It works On Fri, Aug 28, 2009 at 1:16 PM, Pedro Santos pedros...@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ş alt...@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 fernando.wer...@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