Best practises for using CSS with composite server controls.

  • Thread starter Thread starter Peter Rilling
  • Start date Start date
P

Peter Rilling

Hi,

I am creating some ASP.NET composite server controls (inheriting from
CompositeControl). Right now I have the styles for the various objects
hardcoded, but what I would like to do is allow the user to use a stylesheet
without actually knowing the internal structure of the control. I am
insterested in knowing some of the best pracises for using stylesheets with
composite controls.

For example, when a person sets a border style on the main object, I would
like it not to affect the main container but rather the chile controls such
as textboxes and so on.
 
Peter,

I think that to apply a CSS style to a child control, you would need to
write logic to do this.

Hope this helps,


Steve
 
Back
Top