Style Sheets
  Home arrow Style Sheets arrow Manipulating Background 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

Manipulating Background Images with CSS
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2007-06-12

    Table of Contents:
  • Manipulating Background Images with CSS
  • Creating a basic web page layout
  • Adding a small background image
  • Vertically tiling a new background image

  • 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


    Manipulating Background Images with CSS


    (Page 1 of 4 )

    Cascading style sheets let you manipulate the images on your web site in such a way that they can dramatically change its whole look. Keep reading to learn how the technique of tiling can help you make your web site look more interesting.
    A downloadable zip file for this article is available here.

    Introduction

    If you're a web designer who's making the first steps into this fascinating terrain, perhaps you already started applying some of the most popular concepts present in the creation of modern web sites. More than likely you've already built table-less page layouts, created compact, high-maintainable CSS styles, and coded unobtrusive JavaScript routines.

    Yes, definitely it must be admitted that learning these three pillars of top-notch web development help in the construction of truly professional web sites, even when this process, as everything in life, takes time to master. Of course, one of the best things surrounding the development of high-quality web sites is learning to implement those simple yet effective techniques that can turn an arid, text-based web page into a completely different, eye-catching landscape.

    While on the web of today, content is the king that rules almost every tiny aspect of a web site, it's worth mentioning that delivering this content to end users in an attractive fashion can be by far much more effective than simply offering them endless paragraphs of boring text across different pages. And indeed, this simple proven concept can be easily implemented in the real world by adding some appealing CSS styles to the different elements that compose a web site.

    However, there's one specific feature included with the CSS specification that sometimes can be underestimated by some web designers, particularly by those with limited experience in this field. In this case, I'm speaking of using background images to transform the look and feel of a specific web document.

    But, what's the point in mentioning this? After all, in the old days of the web, it was also possible to include background images on a web page, simply to make it visually appealing to potential users. Well, while this is true and doesn't bear much discussion here, you'll surely know that when you work with CSS styles, they allow you to specify easily whether a concrete background picture has to be repeated vertically, horizontally or both, within a specific web document element.

    This known functionality offered by the CSS specification, when used in a clever way, can dramatically change the visual presentation of a web page by only using a few lightweight background images, which can be quickly downloaded by the browser.

    Therefore, taking into account that this CSS-based technique might be interesting to rather inexperienced web designers, in the two tutorials of this series, I'll be demonstrating how to use the pair of popular "repeat-x" and "repeat-y" CSS properties to improve the overall appearance of a sample web site via some simple background pictures. You can use the basic example I'll be presenting to fire up your own sparkle of inspiration.

    So, are you ready to learn how to use the functionality provided by CSS-based background pictures to spice up your existing and future web sites? Okay, let's begin now!

    More Style Sheets Articles
    More By Alejandro Gervasio


       · This first article of the series introduces a basic approach on how to improve the...
     

    STYLE SHEETS ARTICLES

    - Using the Golden Ratio in Liquid Web Page De...
    - Fundamental Design Principles for Web Page L...
    - Pulling Web Page Elements with the Blueprint...
    - Pushing Web Page Columns with the Blueprint ...
    - Controlling Column Padding with the Blueprin...
    - Prepending Classes in the Blueprint CSS Fram...
    - Appending Grid Units with the Blueprint CSS ...
    - Changing Grid Units in the Blueprint CSS Fra...
    - The Blueprint CSS Framework
    - Building a Liquid Design with Evened Margins...
    - An Evened Margin Approach to Centering DIVs ...
    - Using Auto Margins with Multiple Columns to ...
    - Using Auto Margins with a Liquid Layout to C...
    - Using Auto Margins to Center DIVs with CSS
    - Using the Text-align CSS Property to Center ...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT