- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
i want to make my website like your comments option. when someone comments in this website, it shows rounded shape photos. how i can do that?
img { border-radius: 50%; }
Or, if you know the exact size of the image you are dealing with you can use a fixed position:
img { border-radius: 50px; }
Example: http://jsfiddle.net/D8C42/
@TheDoc I can’t think of a situation that using the fixed value would be better than the percentage (when talking about a circle)? Just another value to keep track of, with the percent you can just forget about it!
I remember @chriscoyier mentioning something about browser support for the 50%.
@TheDoc Perhaps back when the prefix was still required? I’m fairly confident that browsers wouldn’t be using the unprefixed version if there were issues. That is just my gut feeling though; I certainly could be wrong.
Could certainly be! I feel like it was recent… Maybe he can chime in when he sees this notification!
I’m certainly curious!
@TheDoc = i want to use it in wordpress. the code i get in jsfiddle, how i can use that code? i mean where i have to put that code?