A style sheet language, or style language, is
a computer language that expresses the presentation of structured
documents. One attractive feature of structured documents is that the
content can be reused in many contexts and presented in various ways.
Different style sheets can be attached to the logical structure to
produce different presentations.
One modern style sheet language with widespread use is Cascading Style Sheets (CSS), which is used to style documents written in HTML, XHTML and other markup languages.
For
content in structured documents to be presented, a set of stylistic
rules – describing, for example, colors, fonts and layout – must be
applied. A collection of stylistic rules is called a style sheet. Style
sheets in the form of written documents have a long history of use by
editors and typographers to ensure consistency of presentation, spelling
and punctuation. In electronic publishing, style sheet languages are
mostly used in the context of visual presentation rather than spelling
and punctuation.
Example CSS
To make all paragraphs on a page blue and sized 100% bigger than normal text, we would apply this CSS rule to a page:
body{
margin:0px;
padding:0px;
}
.waper{
height:auto;
width:100%;
overflow:hidden;
}
.border{
background-color:#FF0;
height:3px;
width:100%;
}
.header{
height:150px;
width:99.3%;
background-color:#000;
border:thick solid #000;
position:relative;
}
Types of css:
There are mainly three types of Css
There are mainly three types of Css
- Internal css
- External Csee
- inline css
All
style sheet languages support some kind of formatting model. Most style
sheet languages have a visual formatting model that describes, in some
detail, how text and other content is laid out in the final
presentation. For example, the CSS formatting model specifies that
block-level elements (of which "h1" is an example) extend to fill the
width of the parent element. Some style sheet languages also have an
aural formatting model.
Click here For More Update
No comments:
Post a Comment