Changing size of a p:commandLink

UI Components for JSF
Post Reply
cookiemonster
Posts: 17
Joined: 16 Dec 2011, 15:40

19 Dec 2011, 14:07

Hi,
I have a commandlink which i can show a picture as a background image with css like:

Code: Select all

.button{
			background-image: url(http://www.lefinnois.net/aqua/aqua1.jpg);
			background-size:50px;
			
			}

Code: Select all

<p:commandLink update="media" value="Kaydet"
						action="#{productView.save}" styleClass="button">
					</p:commandLink>

but i need a command link which has the image with all the width and height of the image.

am i clear?

if i add

Code: Select all

background-size:50px;
line i can see a little image,

if i dont add i can see a part of image.

i try to add

Code: Select all

width:100px;
height:50px;
but nothing changed.

i have asked many times in this forum, with different accounts which i do not remember the mail addresses but none of them could receive a response.

hope you ask me to be more clear if you do not understand the question.

thanks for reading

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 49 guests