Having your computer set-up ergonomically can vary depending on the type of device you’re using, but the basic concepts do not change. Having a task chair that is sized appropriately for your stature and can be adjusted to promote a neutral posture and position while seated is essential.
If working on a laptop, it is recommended it either be docked and treated as though it was exclusively your CPU or raise it to a height that is appropriate for your monitor (at eye height, centered with your body and your keyboard and no more than an arm’s length from the body) and use a separate keyboard and input device (mouse, trackball or other alternative input option).
Whether using one of the above methods or if you use a traditional desktop computer, a proper computer workstation set-up depends on how you measure up to the space, furniture and equipment you use.
For more information, please see these articles for reference: