Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
How to vertically center a clipped image with CSS
(
jonrohan.codes
)
5 points
by
rohanjon
on May 18, 2015
|
hide
|
past
|
favorite
|
3 comments
crimsonalucard
on May 18, 2015
|
next
[–]
An entire article on how to clip an image with a bunch of ugly hacks makes it to the front page of HN. Nothing wrong with the article, but I can't say the same for html and css.
jahewson
on May 18, 2015
|
prev
|
next
[–]
CSS already supports this natively via 'clip-path' (or the legacy 'clip').
biturd
on May 18, 2015
|
prev
[–]
doesn't work in safari though he talks about adding the safari prefix at the end.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: