rounded icons

Jan 09, 2013 00:49

I wanted to have rounded icons for a layout I made. It looks good in IE and FF but Chrome isn't cooperating with me. The layout can de found at mixedfeeling

The Codes )

entry usericon and username

Leave a comment

Comments 3

nomoreprinces January 9 2013, 08:37:14 UTC
Someone better versed in CSS might be able to assist you better but from fuzzing with it, from what I can tell chrome is taking the markup from .userpic img, .userpicfriends img, .defaultuserpic img and applying it to the whole section, ignoring the parent styling right above it.

At least that's what I think it's doing anyway. As to a fix, I'm not sure. In theory what you're doing should work, but for whatever reason in Chrome the parent/child properties are likely bugged? Not sure it can be fixed without some advanced coding not supported by LJ or until Chrome can fix it.

Like I said, I may be utterly and completely wrong, but I hope it can get a fix because I really like the effect!

Reply


tuff_ghost January 9 2013, 15:53:06 UTC
webkit does not seem to support both border-radius and padding on images: http://jsbin.com/asuhuc/1/edit

Your solution is the second pic in the demo: use the parent element to get the padding and border, and set border-radius on both parent and child.

Reply

unreal January 9 2013, 16:28:38 UTC
Thank you :D

Reply


Leave a comment

Up