Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Anonimo
How to display images in buttons?
10 gennaio 2012 2.41
Risposta

Anonimo

Hi there,

In my JSP I have a simple HTML button (<input type="button" /> ). What I want to do is display an image on that button. How exactly do you do this? I have managed to set the background of the image but what that effectively does is override the liferay styles, the button then only has my background image in it but the nice gray-ish shading you get on your html button in liferay is then gone.

So instead of having a background image on the button, anyway of just adding a "foreground" image on the button?

Thanks in advance!
Tomas Polesovsky
RE: How to display images in buttons?
10 gennaio 2012 14.45
Risposta

Tomas Polesovsky

LIFERAY STAFF

Punteggio: Liferay Master

Messaggi: 564

Data di Iscrizione: 13 febbraio 2009

Messaggi recenti

Hi,

have you tried to use <input type="image" /> ?

-- tom