Hacker News new | ask | show | jobs
by Lvl999Noob 516 days 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?
1 comments

For absolutely positioned elements, if you set all four sides then the height and width will be automatically computed.