-” to make an HTML element behave a grid container…”
As super easy as I find Float, I feel the opposite about positioning and a little bit about grid. Float is easy and short. Grid is a little longer than that and I feel like there is a bit much math included (I’m not really good with numbers).
GRID is a little hard and it’s taking me a little bit to understand but it is fun to learn and mess around with. I guess it’s just a matter of getting used to using it right? The more you practice the better you get.
Grid can totally replace floats and positioning. Grid layouts makes it easier to design web pages with rows and columns.
https://www.w3schools.com/css/css_grid.asp
Grid Container…
– “To make an HTML element behave as a grid container, you have to set the display property to grid or inline-grid.Grid containers consist of grid items, placed inside columns and rows.”
https://www.w3schools.com/css/css_grid_container.asp
Styling Images
https://www.w3schools.com/css/css3_images.asp
I’m sure everyone knows about styling images with CSS. I would still like to post a little something about it and a quick link to it. I know optimizing image is always ideal. My curiosity tho is, will it be ok to contain an image using CSS without optimizing it? I think it is possible, but even if we can style an image- a huge, unoptimized image (obviously that’ll also be a huge file size) into a thumbnail size image, if the file size is still huge it will take a long time for it to load in the browser. And maybe if we style it to be bigger than its original size it will stretch and pixilate. The image quality will be low.