Form CSS Background Image

Questions and answers for designing and implementing forms in Servoy

Form CSS Background Image

Postby mpwiedemann » Wed Dec 12, 2012 10:28 pm

Can't seem to get a background image to display on a form in the smart client. The image shows in the web client.

I'm using CSS to style the form:

form {
background-image: url("media:///background.png");
}

Am I just missing something?
mpwiedemann
 
Posts: 49
Joined: Sun Jun 01, 2003 9:08 pm
Location: Seattle, WA

Re: Form CSS Background Image

Postby mpwiedemann » Wed Dec 12, 2012 10:33 pm

Forgot to add.. Using Servoy 6.1
mpwiedemann
 
Posts: 49
Joined: Sun Jun 01, 2003 9:08 pm
Location: Seattle, WA

Re: Form CSS Background Image

Postby mboegem » Wed Dec 12, 2012 11:44 pm

I don't think this will work in smart-client.
Instead place a label with the full form dimensions on your form (don't forget to fully anchor it) and use a styleclass with the background-image property on it.
This works in both smart- and webclient.
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1743
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam


Return to Forms

Who is online

Users browsing this forum: Google [Bot] and 7 guests

cron