Style Sheets
  Home arrow Style Sheets arrow Modifying the Look and Feel of Individual ...
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

Modifying the Look and Feel of Individual Elements with Multiple Style Sheets
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 3
    2007-09-17

    Table of Contents:
  • Modifying the Look and Feel of Individual Elements with Multiple Style Sheets
  • Swapping entire persistent style sheets
  • Developing a simple CSS class-level application
  • Changing the style of DIVs and paragraphs

  • 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


    Modifying the Look and Feel of Individual Elements with Multiple Style Sheets


    (Page 1 of 4 )

    Learning how to control multiple style sheets using both client and server side scripting can be a significant addition to the toolkit for many web designers taking their first steps into this huge terrain. If you're interested in mastering this topic as painlessly as possible, this series of articles might be what you're looking for.

    Introduction

    Welcome to the final tutorial of the series that began with "Working with Multiple Style Sheets." Made up of three articles, this series shows you how to deal with multiple style sheets attached to a selected web document by using some easy-to-follow JavaScript code, and it complements all of the theoretical concepts with instructive code samples.

    As you saw in the preceding article of the series, manipulating a bunch of different style sheets via client-side scripting isn't as complex as it seems to be at first glance. Of course, having the capacity to change the styles of certain elements of a web page doesn't imply that you must always provide users of a web site with this feature. If you wish to give them an additional level of customization, however, you might find this approach quite useful. 

    It's fair to say that swapping several style sheets is indeed a no-brainer process, which can be tackled by utilizing several approaches. In this case, I decided to show you how to perform this task by means of some basic JavaScript code. As you probably know, the same results can be obtained with a server-side scripting language, which introduces an additional advantage: this method is completely independent of client-side scripting.

    In either case, hopefully after reading the two previous articles of the series, you'll have a good idea of how to work with multiple style sheets to modify the look and feel of a given web page. Nevertheless, all of the approaches shown so far relied heavily on switching entire CSS documents. Thus, assuming that you're already familiar with this process, this last installment of the series will be completely focused on altering the styles of individual elements of a web document without the need to swap the full style sheet. 

    Now that you already know the subject of this final article of the series, come along with me and learn how to modify the styles of certain sections of a web document without replacing complete style sheets. Let's begin now!

    More Style Sheets Articles
    More By Alejandro Gervasio


       · In this last installment of this series, you’ll learn how to use JavaScript to...
     

    STYLE SHEETS ARTICLES

    - Image Replacement CSS Techniques
    - Using BlueTrip`s Success, Notice and Error C...
    - More Uses for the Thin and Caps CSS Classes ...
    - Styling Definition Lists with the BlueTrip C...
    - Styling Unordered and Ordered HTML Lists wit...
    - Using the BlueTrip CSS Framework`s Thin and ...
    - Adding Borders to Web Page Columns with Blue...
    - Introducing the BlueTrip CSS Framework
    - Using a Background Grid to Assist Web Page L...
    - Extending the Rule Of Thirds for Web Page La...
    - A Two-Column Web Page Layout Based on the Ru...
    - Using the Rule Of Thirds for Web Page Layout
    - Swapping Columns Using the Divine Ratio for ...
    - Using the Golden Ratio in Liquid Web Page De...
    - Fundamental Design Principles for Web Page L...







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