Page 1 of 2

rounding the edges on the image compnenet

Posted: Mon Sep 24, 2012 4:15 am
by Mike4997955

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


rounding the edges on the image compnenet

Posted: Mon Sep 24, 2012 4:35 am
by maxkatz

With CSS or JavaScript, or uploaded already rounded images.


rounding the edges on the image compnenet

Posted: Mon Sep 24, 2012 1:38 pm
by Mike4997955

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


rounding the edges on the image compnenet

Posted: Mon Sep 24, 2012 3:39 pm
by maxkatz

Look for a CSS solution.


rounding the edges on the image compnenet

Posted: Tue Sep 25, 2012 7:02 pm
by Mike4997955

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?


rounding the edges on the image compnenet

Posted: Tue Sep 25, 2012 8:14 pm
by maxkatz

Are you sure the selector 'a' is correct?


rounding the edges on the image compnenet

Posted: Tue Sep 25, 2012 9:49 pm
by Mike4997955

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%');


rounding the edges on the image compnenet

Posted: Tue Sep 25, 2012 9:55 pm
by Mike4997955

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


rounding the edges on the image compnenet

Posted: Tue Sep 25, 2012 10:13 pm
by maxkatz

img is correct. You might need to do this:

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


rounding the edges on the image compnenet

Posted: Tue Sep 25, 2012 10:57 pm
by Mike4997955

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.