How can I use pre-defined CSS ?

Hello,

Can someone tell me how I can load an existing .CSS file? I am currently developping an application for a big company and different division. Each of them will access the same interface but with different layout defined in different style sheet.

So how can I load it in Servoy ?

Thanks in advance.

Copy the text of your CSS - and go into Tools → Editor. On the very top left you’ll see a node called “Styles”. Right click and create a new style. Name it whatever you want. Paste your CSS code.

NOTE: The way CSS is used in Servoy is DIFFERENT than in a browser. It’s a good idea if you create a “sample” style (you have that choice when you right click on the “Styles” node). That way you can see how Servoy does it. ALSO - there is no “generic” classing in Servoy. So a CSS definition of .body {font: “Verdana” 11pt;} WILL NOT WORK in Servoy.

You’ll see what I mean when you create a sample style. Also, I would HIGHLY recommend that you have a look at the online help about styles. It will give you the lowdown.

Hope this helps.