June 2005 Entries

RE: CSS Woes

Dave asks... ... why, when I add a CssClass to an asp:CheckBox, does it wrap the checkbox within a span? Maybe there's some esoteric reason for this, but when pondering why my CSS isn't being applied I have to View Source to find out what the heck is going on... [Via writerus drivelus] Of course, he's right. There's something not quite right about the CssClass property on ASP.NET server controls. The whole point of server controls is to shield you from having to concern yourself with exactly what HTML they will produce (if, indeed, they produce HTML at all - there's nothing to...

posted @ Thursday, June 02, 2005 11:56 AM | Feedback (0)