Even though the documentation says you can apply border-radius and other border effects to UIImageView, I don't think you really can without losing your image.
I recommend placing a UIView there, assigning it a styleClass and then putting your UIImageView inside it. You can then reliably apply styles to the UIView and get the background and border effects you want around the image.
Update
There is also an issue with your CSS syntax. Pixate doesn't support the shorthand border notation. You have to write it like this:
Even though the documentation says you can apply
border-radius
and other border effects toUIImageView
, I don't think you really can without losing your image.I recommend placing a
UIView
there, assigning it astyleClass
and then putting yourUIImageView
inside it. You can then reliably apply styles to theUIView
and get the background and border effects you want around the image.Update
There is also an issue with your CSS syntax. Pixate doesn't support the shorthand border notation. You have to write it like this:
Again, this has to go on a
UIView
that contains theUIImageView
.