Use CSS to do things images normally do?
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Use CSS to do things images normally do?
Who uses CSS as a substitute for using images to add page decorations.
I'm talking about things like thine lines, blocks of color, overlapping blocks etc etc. Seems that so many people still use images to do things which use about 20% of the bandwidth (if not less) with CSS...
I'm talking about things like thine lines, blocks of color, overlapping blocks etc etc. Seems that so many people still use images to do things which use about 20% of the bandwidth (if not less) with CSS...
agian it depends on what you are trying to accomplish. if you get some dorky designer wanting drop shadows around their images and the like the only way I know how to accomplish this is using images.
Vertical repeating lines also require the use of images.
Depends on what the site has to look like but i do use css as much as possible.
Vertical repeating lines also require the use of images.
Depends on what the site has to look like but i do use css as much as possible.
Well the OP was asking about using CSS to do things it can do, that images also can. So in my opinion, if CSS1 can do it, there's no reason to use an image instead. If its CSS2, then you'll have to look at the level of browser support.
There are of course LOTS of cool tricks using both CSS and images
such as, for instance, a relatively clean markup, drop shadow solution 
There are of course LOTS of cool tricks using both CSS and images
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
I was thinking exactly the same thing. Perhaps there's an actual clean CSS way to it but you can certainly offset two overlapping divs, one light, and one dark. Offset more divs for a more blurred effectnielsene wrote:There are of course LOTS of cool tricks using both CSS and imagessuch as, for instance, a relatively clean markup, drop shadow solution
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Haha, quite true. I guess you need to know where to draw the line. If CSS can clear out the clutter that tables cause why start filling pages with crafty, seemingly random, CSS code which basically creates a new, more modern messnielsene wrote:or offset ~4 completely non-semantic divs for the "Onion Skinned Drop Shadows" from ALA.
(Interesting effect, but I think its just as bad as the "old school nested tables" design method)