CSS Style Rules

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email

The CSS type style sheet is nothing more than an entire series of styling rules. These style sheets assume the same basic form irrespective of whether they are referring to an HTML or an XML element object. The rules first of all select the document object to be styled, and then declare what these style properties are. A style sheet should contain nothing but style rules, white spaces, and comments. With an XML document, we do not have the option of using an internal style tag, and the only way we can put the link information is to use a processing instruction like:

The file pentahome.css or any other css file can contain any information written based on the CSS syntax and rules. In this topic, we will explore the rules of CSS and the different properties and values that can be used for style definitions.

Syntax

The basic syntax of CSS is the object or objects to be styled, followed by an opening curly bracket I(), followed by a colon ( : ), followed by a property value followed by a semi colon (; ), with different properties being repeated.

[ object(s) to be styled ] { ( [ property name ] : [ property value ] ; ) + }

In the above syntax, the first part of the rule is called the selector, as it selects the document object that is to be styled. The second part, the part inside the curly brackets, is called the declaration, as it declares what properties are to be applied.



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.