External stylesheets and custom controls

B

BJF

I may be missing something obvious, but I need a point in the right
direction.
I want to be able to create an external stylesheet with style attributes
for a custom control.

What I Know::

I know that if I wanted to apply style elements to, say, a <p> html
element, then I'd use this CSS syntax:
p
{ property: value; anotherproperty: anothervalue}

I know that if I wanted to apply style elemts to all <p> html elements
with a class of 'thisclass', I'd use this CSS syntax:
p#thisclass
{ property: value; anotherproperty: anothervalue}

What I Don't Know:
If I create my own custom class 'myclass' and add it to my page with
this HTML:
<cc:myclass> ... </cc:myclass>
What should my selector in the external style sheet look like?

I tried
cc:myclass
{ property: value; anotherproperty: anothervalue}

and it didn't work.

If I want to use the style sheet to set attributes for all of my custom
controls with a style class of 'thisclass', assuming I've remembered to set
the CssClass property of my control's instance to 'thisclass', what selector
should I use? I tried this and it didn't work:
cc:myclass#thisclass
{ property: value; anotherproperty: anothervalue}

Any ideas? I'm just not finding this documented anywhere.

Thanks in advance.

Ben
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top