ArticlesBase.com - Free Articles Directory
Free Online Articles Directory
06.09.2008 Sign In Register Hello Guest
Email:
Password:
Remember Me 
forgot your password?


What you need to know about CSS !

Author: Deepak Sharma Author Ranking Blue | Posted: 20-12-2005 | Comments: 0 | Views: 252 | Rating:  (56) Article Popularity - Blue (?) Got a Question? Ask.
Sign Up Now!

Style sheet is a progressive breakthrough for the advancement of web. Today, more and more browsers are implementing style sheets, opening authors' eyes to unique features that allow influence over presentation while preserving platform independence. The advantages of style sheets have become - apparent -- and the disadvantage of continually creating more HTML tags -- galore -- for presentation effects with the gradual development of CSS.

Let's understand CSS in the right perspective.

Style sheets in retrospect

Style sheets have been around in one form or another since the beginnings of HTML in the early 1990s.

As the HTML language grew, however, it came to encompass a wider variety of stylistic capabilities to meet the demands of web developers . With such capabilities, style sheets became less important, and an external language for the purposes of defining style attributes was not widely accepted until the development of CSS.

Teething problems with implementation of CSS

Many implementations of CSS are fraught with inconsistencies, bugs and other Authors have commonly had to use hacks and workarounds in order to obtain consistent results across web browsers and platforms.

One of the most well-known CSS bugs is the Internet Explorer box model bug; box widths are interpreted incorrectly in several versions of the browser, resulting in blocks which appear as expected in most browsers, but are too narrow when viewed in Internet Explorer. The bug can be avoided, but not without some cost in terms of functionality.

This is just one of hundreds of CSS bugs that have been documented in various versions of Internet Explorer,Netscape Mozilla , and Opera, many of which reduce the legibility of documents. The proliferation of such bugs in CSS implementations has made it difficult for designers to achieve a consistent appearance across platforms.

Currently there is strong competition between Mozilla's Gecko layout engine, Opera's Presto layout engine, and the KHTML engine used in both Apple's Safari and the Linux Konqueror browsers - each of them is leading in different aspects of CSS. Internet Explorer remains the worst at rendering CSS by standards set down by World Wide Web Consortium as of 2005.

Some breakthroughs ...

These problems have preisely led the W3C to revise the CSS2 standard into CSS2.1, which may be regarded as something of a working snapshot of current CSS support. CSS2 properties which no browser had successfully implemented were dropped, and in a few cases, defined behaviours were changed to bring the standard into line with the predominant existing implementations..

What makes style sheets significant enough?

Style sheet represents an enormous step forward for the Web. With the separation of content and presentation between HTML and style sheets, the Web no longer needs to drift away from the strong ideal of platform independence that provided the medium with its initial push of popularity. Authors can finally influence the presentation of documents without leaving pages unreadable to users

A style sheet is made up of style rules that tell a browser how to present a document. There are various ways of linking these style rules to your HTML documents, but the simplest method for starting out is to use HTML's STYLE element. This element is placed in the document HEAD, and it contains the style rules for the page.

Functionality and Usage of CSS

CSS is well-designed to allow the separation of presentation and structure. Prior to CSS, nearly all of the presentational attributes of an HTML document were contained within the HTML code; all font colors, background styles, element alignments, borders and sizes had to be explicitly described, often repeatedly, in the midst of the HTML code.

CSS allows authors to move much of that information to a stylesheet, resulting in considerably simpler HTML code. The HTML documents become much smaller and web browsers will usually cache sites' CSS stylesheets. This leads to a reduction in network traffic and noticeably quicker page downloads.

For example, the HTML element h2 specifies that the text contained within it is a level two heading. It has a lower level of importance than h1 headings, but a higher level of importance than h3 headings. This aspect of the h2 element is structural .

Customarily, headings are rendered in decreasing order of size, with h1 as the largest, because larger headings are usually interpreted to have greater importance than smaller ones. Headings are also typically rendered in a bold font in order to give them additional emphasis. The h2 element may be rendered in bold face, and in a font larger than h3 but smaller than h1 . This aspect of the h2 element is presentational .

Prior to CSS, document authors who wanted to assign a specific color, font, size, or other characteristic to all h2 headings had to use the HTML font element for each occurrence of that heading type.

Moreover, CSS can be used with XML, to allow such structured documents to be rendered with full stylistic control over layout, typography, color, and so forth in any suitable user agent or web browser.

CSS has its share of inconsistencies as well

CSS may at times be misused, particularly by the author of web documents. Some developers who are accustomed to designing documents strictly in HTML may overlook or ignore the enabling features of CSS. For instance, a document author who is comfortable with HTML markup that mixes presentation with structure may opt to use strictly embedded CSS styles in all documents. While this may be an improvement over using deprecated HTML presentational markup, it suffers from some of the same problems that mixed-markup HTML does; specifically, it entails a similar amount of document maintenance.

Discrepancies compared: CSS vs programming languages

CSS also shares some pitfalls common with programming languages. In particular, the problem of choosing appropriate names for CSS classes and identifiers may afflict CSS authors. In the attempt to choose descriptive names for CSS classes, authors might associate the class name with desired presentational attributes; for example, a CSS class to be applied to emphasized text might be named "bigred," implying that it is rendered in a large red font.

While such a choice of naming may be intuitive to the document author, it can cause problems if the author later decides that the emphasized text should instead be green; the author is left with a CSS class called "bigred" that describes something that is green. In this instance, a more appropriate class name might have been "emphasized," to better describe the purpose or intent of the class, rather than the appearance of elements of that class.

In a programming language, such a misuse might be analogous to using a variable name "five" for a variable which contains the value 5; however, if the value of the variable changes to 7, the name is no longer appropriate.

CSS in a nutshell

CSS is used by both the authors and readers of web pages to define colors, fonts, layout, and other aspects of document presentation. It is designed primarily to enable the separation of document structure (written in HTML or a similar markup language) from document presentation (written in CSS).

This separation provides a number of benefits, including improved content accessibility, greater flexibility and control in the specification of presentational characteristics, and reduced complexity of the structural content. CSS is also capable of controlling the document's style separately in alternative rendering methods, such as on-screen in print, by voice (when read out by a speech-based browser or screen reader) and on braille based, tactile devices.

CSS allows complete and total control over the style of a hypertext document. The only way this can be illustrated in a way that gets people excited is by demonstrating what it can truly be, once the reins are placed in the hands of those able to create beauty from structure.

Rate this Article: Current: 0 / 5 stars - 0 vote(s).

Article Tags: Html, Css, Browser, Style Sheets

Article Source: http://www.articlesbase.com/technology-articles/what-you-need-to-know-about-css--9177.html

Print this Article Print article   Email to a Friend Send to friend   Publish this Article on your Website Publish this Article   Send Author Feedback Author feedback  
About the Author:
Deepak Sharma is a Web Designer at BlueApple, a Web Design and Development Company with a well connected development infrastructure in India having a strong offering superior web services and solutions at competitive costs.
Submitting articles has become one of the most popular means of generating quality backlinks and targeted traffic to your website. Join us today - It's Free!

Article Comments

Comment on this article Comment on this article
Your Name
Your Email:
Comment Body
Enter Validation Code: Captcha


Related Articles

Cascading Stylesheets Advantages: 5 Reasons To Use CSS
By: Hilco Van Der Meer | 30/04/2006 | Education
Cascading Stylesheets become more and more important in today's webdesign. But before you decide to get started using CSS you should know why CSS is so important and what its advantages are.

4 Steps To Success In Web Development
By: Hilco Van Der Meer | 06/05/2006 | Education
If you are planning to become a serious player in the webdesign world, you should now what to learn and discover. Here's a short list that gives you an overview of your needs.

How To Style Your Text With CSS
By: Hilco Van Der Meer | 09/05/2006 | Education
There used to be the font tags. Today, things have changed. Find out how CSS can help you style your fonts at ease.

Evaluating a Design Slicing Service
By: Mark | 19/01/2008 | Web Design
If you work for yourself, outsourcing has no doubt crossed your mind. It’s something that requires a decision sooner or later. Whether your preference is to defer to another designer, outsource entirely, or simply turn work away - the question remains.

Finding a Local Web Designer - your Guide From a Sacramento Web Designer
By: Tony Thiara | 27/01/2008 | Web Design
One of the major questions you might have when shopping for a web designer is if you should find someone locally or overseas. In this article, I will explore why finding a local web designer might be best for you. This article is applicable for anyone living anywhere on the globe.

Cascading Style Sheets 3
By: Robert | 24/02/2008 | Technology
It can be easily seen that CSS3 concept has changed the face of web designing with its introduction into the web world.

Divs Vs. Tables
By: Robert | 24/02/2008 | Technology
In the end, the decision is in your hand to decide what will it be for your web page: An ancient table or a modern DIV or CSS.

Making Better Web Graphics That Grab your Attention and Load Fast
By: John Catalfamo | 08/04/2007 | Computers
The art of web design is more than just your software it is also the ability to learn and grow in your art. My hope is that this information will help you do this.

Got a Question? Ask.

Ask the community a question about this article:

Frequently Asked Questions

How to change the white background
By: Fawzia Humperdink | 30-07-2008
how to change the white background

I can't delete my browser settings, help.. when I ...
By: mathius78 | 24-07-2008
I can't delete my browser settings, help.. when I select tools, delete history, nothing happens. Also, my folder options won't allow me to view hidden files...

Copy email to browser
By: aajbel | 24-07-2008
how can i copy my email to my browser?

Contact info.
By: t | 22-07-2008
contact info.

What is the difference between an internet ...
By: Art Weseman | 22-07-2008
what is the difference between an internet provider and an internet browser

I have a effanbee Mommy's Baby doll in the ...
By: lyndieart77 | 21-07-2008
I have a effanbee Mommy's Baby doll in the original box and shipping box mint condition, what is it worth

Q&A Powered by:
Powered by Yedda 

Latest Technology Articles

The Importance Of Turbidity To Society And The Environment
By: Thomas Pretty | 06/09/2008
A look at the different uses for the turbidity meter and how it helps to assess the safety of drinking water and the impact of our actions on the environment.

The Use Of Biometric Data By UK Car Hire Companies
By: Thomas Pretty | 06/09/2008
A look at plans for the widespread use of biometric readers such as thumbprint scanners by car hire companies within the UK.

Taking Advantage of New Streaming Video Technology
By: Deniz Kumral | 05/09/2008
Learn how to save stream videos, as well as other tips for taking advantage of the new streaming video technology.

Why Pink Laptops Are Fashionable
By: Theodore Cartman | 05/09/2008
There is a new trend that has made a mark as a fashionable product. The pink colored laptop.

All About HDTV-- A Review
By: Bercle George | 05/09/2008
When we refer to HDTV (also referred to as High Definition Television), it's not only broadcasting at more higher resolution than what is possible with other sorts of televisions, but it more over transmits digitally.

Back To School Batteries
By: Bobby George | 05/09/2008
When preparing to go back to school, don't forget about your battery needs. This article will help you know what to look for.

Are Replacement Laptop Batteries as Good as the Originals?
By: Bobby George | 05/09/2008
When you find yourself having to keep your laptop computer plugged into its AC adapter most of the time, chances are your original battery is dead and it's time to start looking for a replacement.

The ABCs of Office Inventions: From Staplers to Safety Tools
By: Ann Knapp | 05/09/2008
We use them all the time, but most of us don't know the history of those useful objects that cover our desks. Did you know that the mother of ex-Monkee Mickey Dolenz was the inventor of Liquid Paper? Read on to learn more about the fascinating history of some of your other favorite office supplies.

More from Deepak Sharma

Surging ahead with the animation
By: Deepak Sharma | 23/02/2006 | Technology
Dynamism made happen in today's web sites with the help of sorts of animated stuff is a nice thing to give them a lively and happening look.

What resolution should your web site be designed for?
By: Deepak Sharma | 23/02/2006 | ECommerce
The beauty of your web site should percolate down to its intended end users. But what is critical on this front is: Your web site should dawn on your users precisely the way you have designed it.

How to make the organization of your web site simple and intuitive
By: Deepak Sharma | 23/02/2006 | ECommerce
Apparently design architecture comes in the picture the moment you plan to build your web site, and it constitutes a crucial technical consideration.

Getting started with the graphics for an enriching user experience
By: Deepak Sharma | 23/02/2006 | ECommerce
Good web design does not necessarily mean good use of colors and layouts, but it does transcend beyond it. Design elements like color, font, size, frame, etc.

Users can bask in the benefits of Google Analytics
By: Deepak Sharma | 23/02/2006 | SEO
Google has earned its giant position in search engine marketplace through real innovative solutions, and of course, strategic moves all aimed at users' ultimate convenience.

What you need to know about content freshness
By: Deepak Sharma | 23/02/2006 | Advertising
It is always not only advisable but advantageous also to keep your eyes and ears open as to what is happening in the SEO world.

When it comes to the font of your web pages...
By: Deepak Sharma | 23/02/2006 | Technology
A glance at the web pages over the Internet, and you will not at all be disappointed to see a wide variety of font in use. Some of these varieties appear to be lovely on the eyes, some manifest artistic element in them, and some -- though being classy --

An insight into useful dimensions of interface design
By: Deepak Sharma | 23/02/2006 | Technology
World Wide Web has thrown up unprecedented challenges in the realm of engaging and retaining customer. First and foremost, there are plenty of web sites like yours thronging up the Web space designed and positioned to tap the customer base.

Article Categories






Give Feedback

Sign up for our email newsletter

Receive updates, enter your email below