i have a problem with cssclass could any one help

P

prasad

see iam having a user control and i want a cssclass for that users
control ,no prolem in providing that .but the problem is that it
requires two diff styles for the same control so i need two cssclass
files but i think i should not pass two css classes ,so what i can do
to pass two diff styles in a single cssclass , is it possible,any ideas
plz reply to my mail id it is :p[email protected]
 
F

Flinky Wisty Pomm

You can give an element in HTML as many css classes as you like, just
separate them with a space eg <element class="class1 class2" /> I don't
see any reason why that shouldn't work equally well with the CssClass
attribute.
 
T

Terry Burns

No you dont need two class file, you just need two class definitions

..Class1
{
// Stuff for Class1
}

..Class2
{
// Stuff for Class2
}

In code

MyControl.css= "Class1" ' OR
MyControl.css= "Class2"
 

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,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top