Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

rounding the edges on the image compnenet

Is there a way to round the edges on the image component?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

rounding the edges on the image compnenet

With CSS or JavaScript, or uploaded already rounded images.

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

rounding the edges on the image compnenet

Max, how can it be done with CSS or Javascript? Which is the easiest? Thank you.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

rounding the edges on the image compnenet

Look for a CSS solution.

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

rounding the edges on the image compnenet

Max, I appreciate all your help so far. I'm getting the knack of tiggzi, css and jquery. tiggzi has made it much easier to design an app.

I'm trying to round the edges of an image using CSS. I've added this in createnewjavascript:

$('a[dsid="CrystalImage"]').css('border-radius', '25%');

But no rounded edges. Any ideas?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

rounding the edges on the image compnenet

Are you sure the selector 'a' is correct?

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

rounding the edges on the image compnenet

You are right, "a" was incorrect. the dsid is enough. But it still doesn't work. Is the syntax for the selector correct for tiggzi?

$('[dsid="CrystalImage"]').css('border-radius', '25%');

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

rounding the edges on the image compnenet

I also tried:
$('img[dsid="CrystalImage"]').css('border-radius', '25%');

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

rounding the edges on the image compnenet

img is correct. You might need to do this:

-webkit-border-radius: 25px;
border-radius: 25px;

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

rounding the edges on the image compnenet

Sounds good. I didn't know Tiggzi used webkit framework. So i updated the code to:

$('img[dsid="CrystalImage"]').css('-webkit-border-radius', '25px').css('border-radius', '25px');

I even tried the properties seperately, but no rounded edges.

Return to “Issues”