CSS of form Parts

Questions and answers for designing and implementing forms in Servoy

CSS of form Parts

Postby d.pearce1417196993 » Thu Oct 06, 2016 1:48 pm

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
d.pearce1417196993
 
Posts: 16
Joined: Fri Nov 28, 2014 7:49 pm

Re: CSS of form Parts

Postby Bernd.N » Thu Oct 06, 2016 2:39 pm

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;
}
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 487
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: CSS of form Parts

Postby Bernd.N » Thu Oct 06, 2016 4:17 pm

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.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 487
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany


Return to Forms

Who is online

Users browsing this forum: No registered users and 3 guests