4 ms·
In addition to `position: fixed`, shouldn't it be top, left, height, width, instead of top, left, bottom, right? In the second case, it would follow the top and
by Lvl999Noob 2y ago
In addition to `position: fixed`, shouldn't it be top, left, height, width, instead of top, left, bottom, right? In the second case, it would follow the top and left instructions then take the necessary amount of space, ignoring right and bottom?
- nicoburns 2y agoFor absolutely positioned elements, if you set all four sides then the height and width will be automatically computed.