Recently delving into the world of HTML and CSS, I've grasped a few fundamental concepts. Seeking assistance from those more experienced to tackle this perplexing issue.
I am currently working on a webpage that calls for a full-screen background image. Utilizing "height: 100%" in both elements: html and the section housing the background. While it appears fine when adjusting the browser's width, resizing the height results in the collapse of the background's height. My objective is as follows:
- Ensuring the background occupies the entire screen without any horizontal scrollbars across different screen sizes when maximizing the browser window.
- Cenetering the background image regardless of how small the browser window becomes in width.
- Avoiding the collapse of height when reducing the browser window's size and displaying a vertical scrollbar to accommodate text placed on the background without letting it spill over to another section.
Furthermore, suggestions on creating a webpage that adapts seamlessly to screens of all sizes and various resizing actions would be greatly appreciated. Any recommended packages or tools?