Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
robgibbons
on Feb 10, 2022
|
parent
|
context
|
favorite
| on:
Aspect-ratio is great
Back in the day my trick was to use a transparent PNG of just a few pixels in each dimension to establish an aspect ratio for a fluid-width div.
Cthulhu_
on Feb 10, 2022
[–]
That reminds me of using images for rounded corners, used for years until CSS supported them; then they went out of fashion for a while, lol.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: