HTML Page Width and Height Settings | CSS Full Screen Size

Описание к видео HTML Page Width and Height Settings | CSS Full Screen Size

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

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 ➜   / davegray  

⭐ Become a full-stack web dev with Zero To Mastery Courses:
- The Complete Web Developer: https://bit.ly/WebDevMaster
- The Complete Web Designer: https://bit.ly/CompWebDesign
- Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

☕ Buy Me A Coffee: https://www.buymeacoffee.com/DaveGray

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:
https://www.freecodecamp.org
https://www.theodinproject.com
https://scrimba.com/

✅ Follow Me:
Github: https://github.com/gitdagray
Twitter:   / yesdavidgray  
LinkedIn:   / davidagray  
Blog: https://yesdavidgray.com/
Reddit:   / daveoneleven  

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

Комментарии

Информация по комментариям в разработке