|
Posted by Jukka K. Korpela on 07/16/07 11:45
Scripsit dorayme:
> The power of css is such that one can add padding and borders to
> things in a most simple way, including pictures.
I don't think CSS was really meant for any image processing. It is true that
you can use it for very elementary operations on images
> Once you fix
> something into a picture, that is it, it loses all practical
> flexibility.
Padding and borders are, more or less, part of image design, just like the
colors and the shapes of the image. Surely it is one of the most trivial
parts of image design, but it should not be ignored in image design.
If you are thinking about re-using the same images in different contexts on
different pages, fine. But you should always check, for each use, whether
the image really fits, esthetically and pragmatically. You may need to
modify the image, e.g. resize it, pick up a different part from an original
photograph, or change the colors of a drwawing to fit into a particular
color scheme on a page. This is a job for an image processing program, not
CSS code. The same applies to padding and border.
(Confession: I have sometimes forgotten to add borders in an image
processing program and then "fixed" this using border="1". But I'm not
saying that this was right.)
> CSS is for styling.
Not for styling of images.
> Borders and padding are style issues.
So are colors and shapes in an image.
> Now, there is an issue with css being turned off. [2]
- -
> 2. Helpfully, IE provides a 3px gap.
In Quirks Mode.
> At least up until recently
> this has meant that at least there is a 3px gap on at least one
> side for a majority of viewers.
Some other browsers do some other odd things in Quirks Mode.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Navigation:
[Reply to this message]
|