My bad... you are correct...
Basically what I was shooting for is that you need to use the RENDERED html
tag type, not the asp type. :}
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Curt,
Thanks for pointing me in the right direction, for labels one should use
'span' and for textbox you use 'INPUT'
Jurjen.
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:u3**************@TK2MSFTNGP11.phx.gbl... that's because asp:Labels are read as INPUT by the css
try
INPUT
{
background-color: Red;
font-family: Verdana;
font-size: xx-large;
}
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:Oq**************@tk2msftngp13.phx.gbl... I'm experimenting with StyleSheets in ASP.NET.
If I put a label on my webform and <LINK> the CSS file with the following entries to the webform it doesn't work. It only works if I fill the
property 'cssClass' of the label with the value 'label'.
.label
{
background-color: Red;
font-family: Verdana;
font-size: xx-large;
}
Isn't there some standard way of connecting classes (or whatever) to
the standard ASP.NET controls without having to fill the 'cssClass'
property of each and every control on the page ? Like using .label for labels or
.textbox for textbox controls ?
Kind regards,
Jurjen de Groot
Netherlands.