Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yuchi
on Jan 28, 2015
|
parent
|
context
|
favorite
| on:
Use ReactJS to Build Native Apps
You can do that with some funny inline-block wizardy on Vanilla CSS by the way. I don’t currently know if flex-box helps here. I think not.
carterehsmith
on Jan 28, 2015
[–]
Source? AFAIK if you want your border, padding and margin respected, there is no way to do the above in vanilla CSS. Which is why css-flexbox was proposed.
yuchi
on Jan 29, 2015
|
parent
[–]
Here it is (it’s border-{top, bottom} based, not inline-block)
http://www.mademyday.de/css-height-equals-width-with-pure-cs...
The issue is that it’s only width-constrained.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: