Style Sheets
  Home arrow Style Sheets arrow Decorating Images with CSS
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

Decorating Images with CSS
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2010-01-07

    Table of Contents:
  • Decorating Images with CSS
  • A basic web page with sample images
  • Making improvements with the border and padding CSS properties
  • Adding a background color

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Decorating Images with CSS


    (Page 1 of 4 )

    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.

    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!

    More Style Sheets Articles
    More By Alejandro Gervasio


       · Decorating inline images with CSS is a very simple process that can produce quite...
     

    STYLE SHEETS ARTICLES

    - Building Rounded Corners with CSS3`s -webkit...
    - Using the Custom -moz-border-radius Property...
    - Using CSS3`s Border-Radius Property to Build...
    - Adding Semantic Meaning to Styled Code Block...
    - Styling Code blocks with CSS: Using pre HTML...
    - Building Rounded Corners with CSS3
    - Finishing a Casual Navigation Bar with CSS S...
    - Defining a Navigation Bar`s Hover State with...
    - Styling a Blog`s Links Bar with CSS Sprites
    - Creating an Artistic Blog Header with CSS Sp...
    - Defining the Active State of Menu Sections f...
    - Styling the Hover State of a CSS Sprite-Base...
    - Building CSS Sprite-Based Navigation Bars
    - Creating Framed Pictures with CSS
    - Using a CSS Shading Effect to Decorate Images







    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 11 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek