Best practises for using CSS with composite server controls.

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.
 
P

PlatinumBay

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,900
Latest member
Nell636132

Latest Threads

Top