Web Dev Roadmap for Beginners (Free!): [ Ссылка ]
Learn how to set HTML page width and height settings in CSS to achieve a full screen size. Setting CSS Height and Width properties can be confusing when working with the html and body elements. This quick tutorial explains root elements, how the html and body element interact, and when to use viewport units as well as when to avoid them.
💖 Support me on Patreon ➜ [ Ссылка ]
⭐ Become a full-stack web dev with Zero To Mastery Courses:
- The Complete Web Developer: [ Ссылка ]
- The Complete Web Designer: [ Ссылка ]
- Junior to Senior Dev Roadmap: [ Ссылка ]
🚩 Subscribe ➜ [ Ссылка ]
☕ Buy Me A Coffee: [ Ссылка ]
HTML Page Width and Height Settings | CSS Full Screen Size
(00:00) Intro
(00:35) Initial set up and CSS values
(01:50) Viewing Computed Styles in Dev Tools
(02:26) The CSS Reset
(03:40) The root element of your webpage
(04:00) The body element
(04:35) Starting with percentages
(06:15) The root pseudo-selector
(07:15) What is the best solution for a full page height?
(08:25) The problem with 100% height on html and body
(09:20) The solution that has worked for years
(10:53) A more recent solution for full page height
(12:17) What about html page width?
(12:44) Setting html page width with percentages
(13:19) Why you may get a horizontal scroll bar and how to prevent it
(15:33) What styles should be set on the html element?
💻 Learn Web Dev at these sites:
[ Ссылка ]
[ Ссылка ]
[ Ссылка ]
✅ Follow Me:
Github: [ Ссылка ]
Twitter: [ Ссылка ]
LinkedIn: [ Ссылка ]
Blog: [ Ссылка ]
Reddit: [ Ссылка ]
Was this tutorial about how to set the HTML page width and height with CSS helpful? If so, please share. Let me know your thoughts in the comments.
#html #width #height
Ещё видео!