Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions
 Discussion Forums
 HTML, XML, JavaScript...
 Software Reviews
 Editors,Others...
 Top100
 JavaScript Tutorials, ...
 Tutorials
 ASP, CSS, Databases...
 Discussion List
 FAQ, Roundup, Configure ...
 Authoring
 HTML, JavaScript, CSS...
 Design
 Layout, Navigation,...
 Graphics
 Tools, Colors, Images...
 Software
 Browsers, Editors, XML...
 Internet
 Domains, E-Commerce, ...
 WDVL Resources
  Intermdiate, Tutorials,...
 WDVL
 Discussion Lists, Top 100,...
 Technology Jobs

 
Search
 



WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us
Server Racks
Corporate Gifts
GPS
Prepaid Phone Card
Web Hosting Directory
Promote Your Website
Memory Upgrades
Laptops
Cell Phones
Boat Donations
Promotional Products
Disney World Tickets
Promotional Pens
Get Business Software

Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Download these IBM resources today!


Webcast: Hacking 101--The Top 10 Attacks in Web Applications
Learn about the three most common web application attacks, including how they occur and what can be done to prevent them.

eKit: Web Application Security
Discover how IBM Rational AppScan Standard Edition can help you detect vulnerabilities in your Web applications. The new Web Application Security eKit provides you with valuable resources, including whitepapers, demos, and additional information on the benefits of testing your Web applications.

Tutorial: Create Secure Java Applications Productively
This is the first in a two-part tutorial series creating secure Java-based Web applications using Rational Application Developer, Data Studio and Rational AppScan.

eKit: Web 2.0 Developer
Take advantage of open, flexible Web 2.0 technologies, like social software and mash-ups. The IBM Web 2.0 Developer eKit has been updated with the latest best practices & technologies from IBM.
Top 10 Articles
  1. Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions
  2. JavaScript Tutorial for Programmers
  3. Design
  4. JavaScript Tutorial for Programmers - Objects
  5. JavaScript Tutorial for Programmers - JavaScript Grammar
  6. JavaScript Tutorial for Programmers - Versions of JavaScript
  7. Cascading Style Sheets
  8. JavaScript Tutorial for Programmers - Embedding JavaScript
  9. JavaScript Tutorial for Programmers - Functions
  10. Authoring JavaScript
Domain Name Lookup
Search to find the availability of a domain name. Just enter the complete domain name with extension (.com, .net, .edu)

SS Tutorial

Introduction

Contrary to popular belief, Netscape 3.0 does not support Style Sheets, although Netscape Communications is slowly implementing them with 4.0. Internet Explorer 3.01 partially supports them with most of the commonly used features. Use them accordingly.

Style Sheets act as a "template" that can control the layout and design of your pages. They work separate from your HTML, giving you easier maintainability. With Style Sheets, you can finally specify margins, leading, colors, fonts, link styles, alignment, sizes, and more. You can also create a lot of different layouts for the same HTML Tag.

There are 3 basic ways to add the functionality of Style Sheets:

  1. Inline - Creating the elements for each HTML Tag. This will allow the same HTML Tag to have different styles on the same page.
  2. Embedding - Creating the elements on the page itself that will affect every occurrence of an HTML Tag.
  3. Linking - Creating one page that defines the elements and point the pages you want to affect to this page.

For beginners I'd recommend using Embedding or Linking flavors depending on your needs. Once you start getting the basics down, you'll find all ways are pretty easy to do. The Linking Style is great if you'd like to use the same style on multiple pages, then you can use Embedding and Inline on specific pages that don't fit the design style of the Linking Sheet.

The precedence Style Sheets follow is Inline, Embedding, then Linking. Inline Style takes precedence over Embedding Style, which takes precedence over Linking Style.

Cascading Style Sheets

Because you can use more than one style on a page, the browser follows the rules in a cascading order to determine precedence and to resolve conflicts. If the linked style sheet defines a heading tag as blue, the top-of-page style sheet defines it as red, and the reader wants to see purple, the browser has to decide what to display. In general, the author's style sheets override the reader's style sheet, which in turn overrides the browser's default values. If the author uses all three methods listed above, the inline styles take precedence over the embedded block, which overrides the linked style sheet.

Like HTML, the best way to learn how to use Style Sheets is to experiment with them. I hope you've learned at least the basics of Style Sheets and how powerful the layout features are. Happy Styling!

hr1.gif (1127 bytes)



Up to => Home / Quadzilla




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers