Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
1718627440
3 days ago
|
parent
|
context
|
favorite
| on:
CSS now has an if() conditional function
width: fit-content; margin: auto;
Aardwolf
3 days ago
[–]
That changes the width, I guess I should have specified fixed width
reply
1718627440
3 days ago
|
parent
[–]
What is a fixed with, that is not a has not a fix value?
reply
Aardwolf
3 days ago
|
root
|
parent
[–]
I mean elements with a width set in pixels, ems or some other unit. Setting width to 'fit-content' would override the width you set and then the element may overlap others to the right of it
reply
1718627440
3 days ago
|
root
|
parent
[–]
Then you just do width: <width in ems> em; ? I thought you didn't want to specify a width.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: