[Javascript] problem with images

Richard nomorebull at charter.net
Sat Feb 12 12:36:29 CST 2005


The image needs to be the same dimensions as the span.
Otherwise you'll only get that portion of the image.
You show max-width twice where the second one should be max-height, both of
which I believe are IE specific.




> Hi!
>
> This is a more CSS problem but you guys are the best.
> Below is <span> object with background-image property. The problem lies
> in downloading this image by the browser. Sometimes it is shown
> sometimes it is not. I also tried with preloading the image, but still
> no success.
>
> <span style="background-image: url(images/ozadje_letnica.jpg); width:
> 203px; height: 19px; max-width: 203px; max-width: 19px; text-align:
> right;"><a href="javascript:void(0)" onClick="some()"
> style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:
> 11px; color: #737987; text-decoration:none; line-height:18px;
> margin-right:20px;">date</a></span><br>
>
>
> One more thing. Except for the background-image, it renders perfectly in
> IE. But in firefox, the image is shown but not whole (only by the width
> of the text). Any ideas/suggestions?
>
>
> -- 
> Bye,
>
> Iztok
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list