Style Sheets
  Home arrow Style Sheets arrow Page 3 - Using Background Images when Matching Web ...
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  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
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

Using Background Images when Matching Web Page Columns with CSS
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2007-07-24

    Table of Contents:
  • Using Background Images when Matching Web Page Columns with CSS
  • Reviewing some earlier concepts
  • Adding some rounded corners to a web document
  • Listing the complete source code for the rounded-corners example

  • 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


    Using Background Images when Matching Web Page Columns with CSS - Adding some rounded corners to a web document


    (Page 3 of 4 )

    As I mentioned in the previous section, having already defined a fixed web page layout that displays its corresponding columns completely evened, I'm going to add a rounded corners effect to the web document in question, logically keeping its initial structure untouched.

    You're probably asking yourself the following question: how can a rounded corners effect be incorporated into the existing web page layout? Well, this procedure is actually very straightforward. It consists of specifying a background image for the generic wrapper DIV that contains the respective columns of the web document.

    Given that, this background image might look similar to the one shown below:

    As you can see, the previous background image has been created to achieve a rounded corner effect in the left- and right-positioned columns of the previous web document. Of course, in this case the image in question can be used only with fixed layouts, and certainly not with liquid ones, but it does show in a nutshell how a fully-balanced web page can be spiced up with some basic rounded corners. Pretty simple, right?

    And finally, the CSS code required to include the above background picture into the respective main wrapping DIV of the sample web page is the following:

    #mainwrapper{
       clear: both;
       width: 800px;
       height: 100%;
       margin-left: auto;
       margin-right: auto;
       overflow: hidden;
       background: #eee url(roundedbg.gif) center bottom no-repeat;
    }

    All right, at this stage I showed you a simple procedure for including a few rounded corners into an existing, fully-leveled web page layout. Therefore, I'm now going to show you the complete source code corresponding to the web page in question, so you can grasp more clearly how the previously defined background image fits into the overall (X)HTML structure.

    As you might suppose, this code listing will be shown in the next section, thus go ahead and keep reading.

    More Style Sheets Articles
    More By Alejandro Gervasio


       · In this final article of the series, a simple method is showed, in order to...
       · Dear Alejandro,Your articles have been very helpful to a degree student struggling...
       · Hi Graham,Thank you for the kind comments on my web development articles. I...
     

    STYLE SHEETS ARTICLES

    - Creating Hybrid Web Page Layouts with Negati...
    - Creating Three-Column Web Page Layous with N...
    - Swapping Column Positions in Web Page Layout...
    - Creating Web Page Layouts with Negative Marg...
    - Creating Gradients for Individual Containers...
    - Creating Gradients for Web Page Headers with...
    - SEO Scrolling Frames Problem Solved
    - Building Cross-Browser Background Effects wi...
    - CSS: Pseudo
    - Using PNG Images to Build Background Effects
    - CSS: Continuing the Clarification of CSS Cla...
    - CSS: Top Secret Classification
    - CSS: Dimensions
    - CSS: Margins and Padding
    - CSS: Crossing the Border






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