Skip to main content

Posts

Showing posts with the label CSS

CSS(cont.)

Type Selectors ·        Universal Selector CSS has a special selector (*) which means it matches every   element in the document. This selector is useful in when name of elements are unknown while developing the style sheet. For example:- * {color: green; } ·        Descendent selector This selector is also known as contextual selector. In style                   sheet it is applied to a particular element only when it lies inside a particular element. It provides a better way to apply style to very particular elements. This selector is consisting of one or more selector separated by white spaces. ·        Child selector This is similar to the descendent selector. It selects the element which is just immediate children of the specific element. It is denoted by the >. It can be writing as follow:- Ø Body > * - it select all the children of the <body>element Ø   Body > * > * - it select all the grandchildren of the <body>element Ø   B

Fundamentals of CSS

CASCADING STYLE SHEET (CSS) Introduction Style sheets are powerful mechanism for adding different types of styles to any web document or web page. It allows web designer to improve and change the appearance of the web page in very efficient manner. It makes standard and uniformity throughout a web site. It enables us to control rendering of styles such as fonts, color, typeface, size, spacing, margins, and other aspects of document style. It is a style sheet language which specifies how to incorporate style information in a style sheet. These sheets are said to be cascade when they combine to specify the appearance of a web page, which indicate that several style sheet can be blended to a document. To embed style to a document <style>…. </style> tags are used. ADVANTAGES ·         Its main advantage is its ability to make global change to all documents from a single location. ·         The primary intention of CSS is to separate document presentation fr