Page 1 of 1

CSS of form Parts

PostPosted: Thu Oct 06, 2016 1:48 pm
by d.pearce1417196993
Hi,

It appears that you can apply a CSS style for a form part.

But it is hard to see how I define that in my CSS.

My form is attached to a styleClass form.main

When i click on the title header part, i get an option for styleClass, but all i see is DEFAULT and nothing in the menu.

No amount of trying yo define a subclass for that menu makes it appear there!!!

What is the syntax in my CSS to add a style that will appear in the Style Class box when clicking the form part?

Thanks

David

Re: CSS of form Parts

PostPosted: Thu Oct 06, 2016 2:39 pm
by Bernd.N
I checked in our CSS and found this examples:

title_header.window_header {
background-color: #CBD7E2;
}

form.dialog {
background-color: #F7F7F2; /* #EAEEEA */
border-width: 2px 2px 2px 2px;
border-color: silver;
border-style: solid;
}

Re: CSS of form Parts

PostPosted: Thu Oct 06, 2016 4:17 pm
by Bernd.N
If not yet checked, you could also have a look to
https://wiki.servoy.com/display/public/DOCS/Styling+with+CSS
At the end of that page is another helpful link regarding styles.