Imagine wanting to craft an HTML page featuring a primary div housing all of the content. In this scenario, the div should enclose other divs and remain centrally fixed on the page, similar to the image provided.
How should one determine the appropriate width for the main div? Should it be specified in % or as a value in px
? What is considered best practice in this situation, and what specific value is deemed correct?
The image can be found here for reference.
EDIT: So many valuable responses have been shared so far... A big thank you to everyone contributing!