Monday 19 November 2012

understanding css concept


hello friends !! Today i am just going discuss about css. As every one that is css is used to make more attractive website.so css also a part of asp.net to make web application.

Understanding CSS Concept
  •         CSS stands for Cascading Style Sheet.
  •       CSS are simply text files (.css ), composed of lines of code that tell browsers how to display an HTML page. They give the designer more control over the appearance of a webpage by allowing to specifically define styles for elements, such as fonts, on the page.


Type of CSS:

1.     Internel Style
2.     Inline Style
3.     External Stlyle

Internal Style:

Internal style is used inside the <head> section.For Example:

<head>
<style type=“text/css”>
p
{
color:red;
text-align:center;
}

</style>
</head>

Inline Style:

Inline styles are CSS styles that are applied to one element using the style attribute.For Example:
<p style=“font-size:14px;color:red”></p>

External Style:

The external style is basically a text file that is save as .css file.It is simply a separate page from our html page. We must link the external style sheet to web page to be applied as specified.For Example:
<head>
<link href=“file name.css” rel=“stylesheet” type=“text/css”>
</head>
P
{
Color:red;
Text-indent:22px;
Font-size:11px;
Text-align :center;
}

I hope this post will help you ..
If you have some query regarding to this topic then just post you comment hear.Your comment will be appropriate..

0 comments:

Post a Comment

Hey thanax alot to comment i will revert you back soon...

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites