Hello,
"Philipp Lenssen" <in**@outer-court.com> schrieb im Newsbeitrag
news:bt************@ID-203055.news.uni-berlin.de...
dIna wrote:
"Philipp Lenssen" <in**@outer-court.com> wrote in message
news:<bt************@ID-203055.news.uni-berlin.de>...
My question, how can I display image-borders only if the image is
bigger than 1x1 pixels? Because that's the default served by the
Open Thumbs project. So if I display a border around all images via
CSS, then I also get the border around non-existing (1x1) images...
which I don't want...
I think you should use a javascript to do that (to read the pic's
dimension and apply border or not ).
Yes you're right... I was wondering how to do it within the stylesheet
without the use of JavaScript.
Make use of graphic library.
Using php, check if your provider installed it (phpinfo()).
I guess, they provide it.
Using this library, create an instance with each picture and get picture
dimensions by appropiate methods.
Then generate two different xhtml outputs (serverside) dependant on size
with different css-classes.
Let CSS decide what to do with them.
In addition you might wish not to generate link tag around "empty" image.
Further you might to wish not to generate any xhtml with empty pictures.
have luck,
--
Marko Faldix
M+R Infosysteme
Hubert-Wienen-Str. 24 52070 Aachen
Tel.: 0241-93878-16 Fax.:0241-875095