Women Magazine Islamic Wallpapers Islamic Names Arabic Mehndi Design Faraz Poetry Vector Icons Beauty Tips India Mehndi Design Boys and Girls Names Directories Web Games 2012 Events and Holidays Web Templates

Home Sitemap Contact
Home Islam News Horoscope Urdu Jokes SMS Women Section Articles Urdu Section Weather Directories Urdu Poetry
Today Date:
You are here: Home > Articles > CSS Articles > Starting Cascading Style Sheets - Article

CSS Articles

Quick Links:   

Starting Cascading Style Sheets

Cascading Style Sheets (CSS) are being used more and more by web designers to layout and format web pages. Although they have been around for several years now many designers have avoided them due to browser incompatibility.


Although compatibility problems still exist they are no longer an issue for most applications. Here I will concentrate here on the main features and how they work and why they are used.

You may find yourself using CSS anyway without you knowing as programs like FrontPage use CSS (depends on page setup options) for some of their functionality. <H4>Styles Solve a Common Problem</H4>


HTML was originally designed to define the content of a document but not the document presentation/layout. The layout of the document was supposed to be taken care of by the browser, without using any formatting tags. The content is defined by using tags like h1,



, table, which basically say "This is a header", "This is a paragraph", "This is a table", by using tags like and so on.


The principal browser vendors, Netscape and Microsoft, competed by adding support for new, proprietary tags (like the <font> tag and the colour attribute) and technologies that permitted increasingly high-impact Web pages.

These innovations were good for spurring the development of Web technology, but they created problems as well.


Consequently it became more and more difficult to create Web sites where the content of HTML documents was clearly separated from the document's presentation and that would be displayed correctly on any browser.


The World Wide Web Consortium (W3C) - the consortium responsible for standardizing HTML - created a language called Cascading Style Sheets, or CSS.CSS, unlike HTML, is designed solely to define appearance as efficiently as possible.


It can exist either within HTML or as a linked document, letting developers separate a Web page's content (marked up in HTML) from its presentation (defined by CSS). Both Netscape 4.0 and Internet Explorer 4.0 and later support Cascading Style Sheets.


Style sheets work like templates: you define the style for a particular HTML element once (e.g. header tag h1), and then use it over and over on any number of Web pages.


If you want to change how an element looks, you just change the style; the element automatically changes wherever it appears. (Before CSS, you had to change the element individually, each time it appeared) .Style sheets let Web designers quickly create more consistent pages--and more consistent sites. <H4>How Style sheets are Implemented</H4>


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 include in the pages that you want to affect.


For beginners using Embedding or Linking is recommended.. The Linking Style is used when you want to use the same style on multiple pages, you can then use Embedding and/or Inline on specific pages that don't fit the design style of the Linking Sheet. <H4>Precedence and inheritance</H4>


As the term Cascading Style Sheets implies, more than one style sheet can be used on the same document, with different levels of importance. Generally styles from different style sheets merge together (cascade) into a virtual style.


However, If you define conflicting styles for the same HTML element, the innermost definition--the one closest to the individual tag-wins

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


There is a fourth style sheet which is set not by the document author but by the reader and that is the browser default. Taking this style sheet into consideration the order of precedence is:



1. Inline Style (inside HTML element) .

2. Embedding Style Sheet (inside the <head> tag).

3. External Style Sheet.

4. Browser default.

Source: Stephen cope
More Articles Listing in this category:
The benefits of using CSS
Submitted by: Jim McCoy on 14-09-2008
Stylish and Accessible Forms using CSS
Submitted by: Sam Hickson on 14-09-2008
CSS Buttons Instead Of Image Files
Submitted by: Timothy Aaron Whiston on 14-09-2008
How To Create A Blogger & Blogspot Theme
Submitted by: Brad on 14-09-2008
Rollover CSS Image Menu
Submitted by: KarachiCorner-Admin on 14-09-2008
More...
Share It!
  • Digg
  • Yahoo! Buzz
  • StumbleUpon
  • TwitThis
  • Reddit
  • del.icio.us
  • Technorati
  • Facebook
  • Mixx
  • MySpace
  • LinkedIn
  • Google Bookmarks
  • Print this article!
  • E-mail this story to a friend!
blog comments powered by Disqus

Subscribe via email
 
Download Free Vector Images Daily Horoscope
Send Free Greeting Cards Women's Corner
       Search Our Archives
 
Bookmark and Share
    Categories
Makkah Wallpapers
Madina Wallpapers
Hamd | Naat | Bayanat
Urdu Stories
Urdu Poetry
Urdu Jokes
Urdu SMS
Women Section
Cooking Tips
Women Beauty Tips
Women Fashion
Mens Fashion
Pakistani Music
SEO Articles
Make Money Online
Islamic Boys Names
Islamic Girls Names
Ringtones
Urdu Novel
MSN Stuff
Love Calculator
Funny Videos
Online Games
Telephone Directory
Mobile Softwares
Web Templates
Events & Holidays
Hina Mehndi Designs
    More Categories
    Graphics Resources
Business Cards Designs
Latest jQuery Plugins
Fresh jQuery Plugins
Vector Graphics
Pattern and Texture
Photography
Business Card Design
Vintage Posters
Movie Posters
Advertise here
    Tags
Makkah Wallpapers Madina Wallpapers News Mehndi Designs Daily Horoscope Mobile Ringtones Online Games Jokes Funny SMS Weather Updates SEO Articles Flash Games Make Money Articles Cooking Recipes Beauty Tips Women Section Greeting Cards Vector Icons Free PSD Templates Muslim Boys Names Women Jewelry Designs Banks Best Hotels Mobile Softwares
    Graphics Resources
Free Vector Cliparts
Free Vector Background
Mini Pixel Icons
Icon Packages
Technology Photos
Interface Icons
Vista Icons
Multimedia Icons
Mix Icons
Ecommerce Icons
Icandy Toolbar Icons
Custom Software Icons
Web Application Icons
Christmas Icons
Windows XP Icons
PSD Templates
Mobile Ringtones
    Useful Links
Earn Money with your Blog or Website
Urdu Jokes Urdu SMS Urdu Poetry
Women's Jewelry Women's Fashion Hind Mehndi Desings
    Technology Links
Free Online Games
Muslim Name islamic Names
Web 2 SMS Send Free SMS
Urdu Recipes
 

Popular Posts:


Mehndi Designs
Mehndi Designs, Hina Mehndi Designs, Arabic Mehndi Designs, India Mehndi Designs, Bridal Mehndi Designs
Urdu Poetry
The huge collection of Urdu poetry web site of the world. Faraz Poetry, Wash Shsh Poetry, Parveen Shakir, Mirza Ghalib
Daily Horoscope
Urdu-Mag.com has been providing horoscopes, astrology, and psychic readings on the internet for free.
Download Vector Icons
You can download high quality Vector and Web-Ready clipart for FREE. Free Vector Background, Mini Pixel Icons, Interface Icons, Vista Icons, Mix Icons
Food and Recipes (Cooking Recipes)
We have huge collection of Pakistani Recipes, Indian Recipes, Chicken Recipes, Lamb Recipes, Vegatable Recipes, Cury Recipes and much more...
Send Greeting Cards
Send free online greeting cards, animated cards, ecards, postcards & egreetings with quotes for friends and family on special occasions: Eid Geeting Cards, Birthday Greeting Cards, Love Greeting Cards, Friendship Greeting, ...
Donwload Mobile Ringtones
Browse our collection of polyphonic ringtones alphabetically or use our powerful search to find ringtones quickly.
   

Most Popular Pages:


News (Daily News, Sports News, Business News, World News)
Urdu-Mag.com News brings the breaking and latest news of Pakistan, world, business, technology, sports, entertainment, education, cricket, politics, and more & more.
Articles (SEO Articles, Health Articles, Make Money Articles )
Urdu-Mag.com is a free content search engine and article directory.
Submit your articles, email articles, browse articles in more than 50 categories.
Web Directories (Submit Your Site)
One Way Text Link is a list of web directories and a free directory submission tool to submit semi-automatically to over 3500 quality free web directories as well as paid directories and keep track of all of your submissions.
Urdu Poetry (Ahmed Faraz, Wash Shah, Parveen Shakir)
Urdu-mag.com have huge collection of faraz poetry, wash shah poetry, parveen shakir and other popular poets poetry, Urdu poetry archive with ghazals, nazms, articles, and links to related websites.
Islamic Names | Muslim Boys Names | Muslim Girls Name
Urdu-mag.com have large collection of Muslim Boys & Muslim Girls Names. Muslim names with meanings and arabic text. Islamic baby boy and girl names. Search Muslims Names.
Download Free PSD Templates
You can download high quality PSD Templates, Joomla Templates, Flash Templates, Business Templates, OSCommerce Templates, Mombo Templates, Free CSS website Templates, Ecommerce Templates for FREE..
Free SEO Tools
Free SEO Tools for webmaster, SEO Tools are Google Page Rank, Google Indexing, Yahoo Indexing, Alexa Page Rank, Backlinks, Link Popularty and more free SEO stuff
 
Copyright© 2008-2009 www.urdu-mag.com, All Rights Reserved. Contact Us