Symptoms
Image de fond
Diagnoses
Bonjour.
Comment je peux faire pour mettre une image de fond sur mes formulaires ?
Merci.
Resolution
Dear Mr Jouanne,
ISSUE:
How can I do to put a background image on my forms?
RESOLUTION:
You can add a background image to a form using themes. You can find attached an example using the following image:
http://i.stack.imgur.com/jGlzr.png
To do this, simply edit the CSS file directly into C:Program Files (x86)K2 blackpearlK2 smartforms RuntimeStylesThemes*.css
As explained on this link:
http://community.k2.com/t5/K2-blackpearl/Set-a-background-image-for-Forms/m-p/80384_M23705
Just add the following code in the CSS:
html {
background: url (yourImageURL) no-repeat center center fixed
-webkit-background-size: cover
-moz-background-size: cover
-o-background-size: cover
background-size: cover
}
you cand find attached the new css file for a new theme "PlatinumTest.css", based on the theme "Platinum"
This method has the disadvantage of having one theme by background image.
We can put too a feature request for a future version, for example if:
- You want different images for each form
- You want an image that is below the tables
Thank you to tell us if you are in one of these cases or another issue.
Look at this link if you want to create your own theme (and do not change existing)
http://help.k2.com/onlinehelp/k2smartforms/DevRef/current/default.htm_Deploying_and_Registering_Custom_Themes.htm
You have 2 days to accept or reject this resolution. If you feel the issue is not resolved, please reject this resolution.
Otherwise, please take the opportunity to submit feedback, using the link included in this message.
Thanks, and regards
Olivier Chatagnon