Click here to Skip to main content
15,886,017 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
CSS
.k-callout {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px;
    border-color: transparent;
    border-right: 56px transparent solid;
    border-bottom: 0px;
    border-left: 24px transparent solid;
    margin-left: 355px;
    transform: rotate(150deg);
    margin-top: 15px;
}


for tooltip on left side:
.k-widget.k-tooltip {
    border-radius: 10px;
    margin-left: -416px;
    margin-top: 41px;
    background: transparent linear-gradient(#ecf9f7, #b4c3a3) repeat scroll 0% 0%;
    /* border-color: #E6F3FB; */
    -moz-box-shadow: 3px 3px 4px rgba(0,0,0, .65);
    -webkit-box-shadow: 3px 3px 4px rgba(0,0,0, .65);
    box-shadow: -4px 6px 4px black;
}
Posted
Updated 29-Jan-16 1:15am
v2
Comments
Nathan Minier 29-Jan-16 7:11am    
Your question is too vague and makes little sense as is.

Are you using the css for a web front-end, or a native windows store app? What platform or framework are you using?

What are you trying to do with it? What have you tried? Where are you stumbling?
Sathish km 29-Jan-16 7:30am    
mainly for custom control design.
koolprasad2003 29-Jan-16 7:15am    
It is bit wired requirement, why you want file to CSS to be add in .CS (classlibrary) file
Sathish km 29-Jan-16 7:30am    
mainly for custom control design.
Sergey Alexandrovich Kryukov 29-Jan-16 11:10am    
Again, the question makes no sense. There is no such concept as "call styles". You don't call CSS, you use it to style your HTML. How is it related to C#? Okay, you can automatically generated any content (of any content type) with ASP.NET, including CSS; this is the main point of using ASP.NET and any other server-side programming. But what's the goal of making such CSS? Dynamic styling depending on some condition? Or what?

And please, don't repeat the same phrase again. Please answer the question properly.

By the way, all problems with dynamic change of styles can be easily solved based on static CSS files. Changing a style does not mean changing CSS; it can be simply changeing/adding/removing a style class to/from HTML element.

—SA

1 solution

If you want to make sure that your control, wherever it is used, already has loaded the css then you can do it dynamically via c#. See c# - Adding StyleSheets Programmatically in Asp.Net - Stack Overflow[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 29-Jan-16 11:13am    
Of course, knowing this technique would be useful, but I would rather find out what the inquirer really wants to achieve. Unfortunately, I'm not sure this person understand is — look at the comments to the questions. Even if your answer is based on correct guess, I doubt the inquirer can understand it.
—SA
ZurdoDev 29-Jan-16 11:31am    
OP was asked "why you want file to CSS to be add in .CS (classlibrary) file?". OP's answer: "mainly for custom control design."

I've done this myself which is why I believe I understand the OP just fine. You don't want to have to remember to also add the CSS file to any page you add your control to. It keeps the control self-contained.
Sergey Alexandrovich Kryukov 29-Jan-16 11:33am    
Well, it's likely that you are right here. After all, if the inquirer meant something else, this is not your fault. Up-voted.
—SA
ZurdoDev 29-Jan-16 11:38am    
Thanks. ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900