How to focus on the content of my page so that it focuses on each type of screen size? For example, in Allegorithmic , if I resized my browser, the contents of the center will move to the left until it reaches the browser window. There are some background elements that expand horizontally (dark gray on top, light gray in the middle, etc.). I can open this site on my laptop and on my iMac, and it is focused. I thought I could use absolute positioning to move the content x of the number of pixels to the left, but this will not work, because the 300 pixels that center the content on the small screen will not center it on the big screen.
So, essentially, I would like to duplicate the functionality of the Allegorithmic website, have backgrounds that are infinite horizontally, but have certain content that always remains โcenteredโ.
source share