hi to all
i want to know that i have a css and now i don't want to use a single property of class like:
body{ background:transparent url('some url of an image') no-repeat; width:100px; height:100px; color:#dadada; font-family:verdana; }i had define width ,height and backcolor
i want to use width and height and don't want to use backcolor from css.
hariomPosted Sep 13, 2010, 4:49 AM
set control backcolor property when u access this css:
like if u want lable for this css then use cssClass="ur class name" and backcolor ="ur color name"
here this lable not get its backcolor from css .
see the code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Pagetitle>
<style type="text/css">
.lable1
{
width:100px;
height:100px;
color:blue;
font-family:verdana;
}
style>
head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label Text="hello" runat="server" CssClass="lable1" ForeColor="Red">asp:Label>
div>
form>
body>
html>