2 ms·
width: fit-content; margin: auto;
by 1718627440 11mo ago
width: fit-content;
margin: auto;
- Aardwolf 11mo agoThat changes the width, I guess I should have specified fixed width
- 1718627440 11mo agoWhat is a fixed with, that is not a has not a fix value?
- Aardwolf 11mo agoI 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
- 1718627440 11mo agoThen you just do width: <width in ems> em; ? I thought you didn't want to specify a width.