css button image is not visible

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
chs
Profound User
Posts: 53
Joined: Tue Jan 27, 2015 8:13 am
First Name: Christoph
Last Name: Seitz
Company Name: Waser + Co. AG
Phone: +41 44 94 74 341
Address 1: Erlenwiesenstrasse 2
City: Volketswil
State / Province: Outside Canada/USA
Zip / Postal Code: 8604
Country: Switzerland
Contact:

css button image is not visible

Post by chs »

Hi everyone,

We would like to use a css button with a background image (our settings: field type = css button, theme = D - Light Gray,
background image = url('/profoundui/....image.png), small button = true, background position = center)

Unfortunately, the image is behind the button surface and not visible resp. only the egdes of the image are visible.

How can we change the setting of the button surface to transparent resp. bring the button image to front?

Thank you for your answer in advance.

Christoph
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: css button image is not visible

Post by Scott Klement »

I'm not certain how to make a 'css button' use a background image. It seems to me that if you assign a background image to a css button, you must either make it so you cannot see the button (because image is in front) or that you cannot see the image (because button is in front). So this would not work, would it?

An image widget can be used the same as a button. (It has a 'response', and 'onclick' just as a button does.) Can you use that for your purposes?
chs
Profound User
Posts: 53
Joined: Tue Jan 27, 2015 8:13 am
First Name: Christoph
Last Name: Seitz
Company Name: Waser + Co. AG
Phone: +41 44 94 74 341
Address 1: Erlenwiesenstrasse 2
City: Volketswil
State / Province: Outside Canada/USA
Zip / Postal Code: 8604
Country: Switzerland
Contact:

Re: css button image is not visible

Post by chs »

Thank you for your answer.

Yes we are using an image widget as a button now.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests