Jump to content

Border-Radius On Images


cclloyd9785

Recommended Posts

You can give the border radius to the <img> element, or give a border radius to the element which has the image as a background. You can't manipulate the file itself, you'll have to modify it in photoshop for that.

Link to comment
Share on other sites

I am not sure if this is the best way to do it but try it. The html code:

<div class="image">	<img src="img/name.png" height="x" width="y" alt=""/></div>

And the CSS code:

.image {	height=x;	width=y;	border: solid 0px #fff;	border-radius: j%;}

I am not sure if the

border: solid 0px #fff;

is needed. The image should have rounded corners since it is inside that div. Edit: Woops Ingolme got me as i was writing this :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...