Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
How to use css in in Simple solutions of
Can write css for in 3 ways.
  1. Seperate style sheet (external style),
  2. Internal style,
  3. Inline style.
1. External style sheet 
In this method,write the css in seperate style sheet and link the style sheet in master page or required page.
Syntax to link the style sheet in page
Inside the head tag write this.
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
2. Internal style 
In this method, write style directly in page inside the head tag.
	<style type="text/css">
	           width: 436px;
	           text-align: center;
	           height: 45px;
	           color: #0066CC;
	           text-align: center;
3. Inline style 
In this method, write the style directly in tags.
	<asp:TextBox ID="UserName"  runat="server" value="Username" MaxLength="20" style="ForeColor:#707070;"></asp:TextBox>
	/*In this example, the fore color given directly in text box tag.*/
Best Lessons of ""
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details