![zoom fluid image zoom fluid image](https://mlyvwtn7rswg.i.optimole.com/ww5pdAM.fSHs~43dfc/w:auto/h:auto/q:55/https://equipment.cafe/wp-content/uploads/2021/05/EQC-4199.jpg)
However, issues arise when you start to view the site on a narrow screen device. The content images have been set so that if the body element becomes smaller than the image, the images start to shrink so that they always stay inside the body, rather than overflowing it.If the site is being viewed on a narrower screen, the important detail in the center of the image (the people) can still be seen, and the excess is lost off either side. The header image has been set so that its center always stays in the center of the header, no matter what width the heading is set at.In viewports below that width, the body will stay at 100% of the width of the viewport. The body content has been set to a maximum width of 1200 pixels - in viewports above that width, the body remains at 1200px and centers itself in the available space.
#Zoom fluid image code#
This works well on a wide screen device, such as a laptop or desktop (you can see the example live and find the source code on GitHub.) We won't discuss the CSS much in this lesson, except to say that: The header image will likely span the whole of the width of the header, and the content image will fit somewhere inside the content column. A typical website may contain a header image and some content images below the header.
![zoom fluid image zoom fluid image](http://www.deosan.co.nz/assets/Uploads/ZOOM-ALKALI-LIQUID-100L.png)
![zoom fluid image zoom fluid image](http://media1.popsugar-assets.com/files/2021/01/04/010/n/1922507/9192a84f8d8c1686_pexels-murtaza-saifee-1684617/i/valentine-day-zoom-backgrounds.jpg)
Introducing JavaScript objects overview.Making decisions in your code - Conditionals.Basic math in JavaScript - Numbers and operators.Storing the information you need - Variables.What went wrong? Troubleshooting JavaScript.JavaScript - Dynamic client-side scripting.Assessment: Fundamental layout comprehension.Assessment: Typesetting a community school homepage.Assessment: Creating fancy letterheaded paper.Assessment: Fundamental CSS comprehension.HTML table advanced features and accessibility.From object to iframe - other embedding technologies.Assessment: Structuring a page of content.