Home arrow Style Sheets arrow Decorating Images with CSS
STYLE SHEETS

Decorating Images with CSS


If you want a web site with images that make it stand out from the crowd, keep reading. This three-part article series will show you how to give your images a professional look without resorting to Photoshop. All you'll need is some basic CSS. In this first part, you'll learn how to use slim borders and padding to achieve a picture frame effect.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
January 07, 2010
TABLE OF CONTENTS:
  1. · Decorating Images with CSS
  2. · A basic web page with sample images
  3. · Making improvements with the border and padding CSS properties
  4. · Adding a background color

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Decorating Images with CSS
(Page 1 of 4 )

From the old and nostalgic days when Tim Berner Lee brought it to Life, the web has been not only a creature in constant evolution, but one that now owns the largest audience worldwide. What’s more, a number of surveys have revealed  that, for many users, the web is the Internet. This is conceptually wrong, but perfectly understandable from a beginner’s point of view.

There are numerous reasons that might justify this misleading opinion, which are out of the scope of this article. At least two of them should be kept in mind, however: first, the web is by far the easiest platform to deal with (especially when compared to other application-level protocols such as FTP, SMTP or POP3), and last but not least, it’s unquestionably the most appealing, too.

Without a doubt, a web site providing carefully crafted content can attract many visitors. However, one offering the same quality of content, but delivering it through a polished interface and loaded with a bunch of eye-catching images, will attract many more. The moral of this story is ridiculously simple: images are of great help when it comes to building a professional-looking web site, but quite possibly the most challenging task is to give them a pleasant appearance without having to be a Photoshop guru.

Here’s exactly where style sheets come into play. It's possible to provide online images with a fresh look by using only a few basic mixtures of CSS properties. These are extremely easy to code, even for beginning web designers.

If I've caught your attention now, in this three-part series, I’ll be exploring some proven CSS-based techniques that you can use to make your images stand out from the crowd, ranging from using borders and padding, to working with background images. But wait a minute! Images that decorate other images? That sounds like a confusing, recursive thing. Well, it’s not, trust me.

Even so, if you want to make your doubts disappear in the flicker of an eye, start reading!


blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Combinators: Working with Child Combinat...
- CSS Combinators: Using General Siblings
- Intro to CSS Combinators
- CSS Semicircles and Web Page Headers
- Drawing Circular Shapes with CSS3 and Border...
- More CSS Pagination Link Templates
- CSS Pagination Links
- Animated CSS3 Image Gallery: Advanced Transi...
- CSS3 Animated Image Gallery: Transitions
- CSS3 Properties: Fixed Heights with box-sizi...
- CSS3 Properties: Altering Strokes and 3D Eff...
- CSS3 Properties: Text-Stroke
- CSS3 Transitions: Width and Height Properties
- Creating a Drop Down Menu in CSS3
- Intro to CSS Transitions

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 8 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials