Module 2
Working with images. Basics of image styling – border, rounded corners, effects and fitting. Using images as backgrounds. Background color and gradient image masks.
Working with images. Basics of image styling – border, rounded corners, effects and fitting. Using images as backgrounds. Background color and gradient image masks.
Basic styling of images in CSS. Set the width, height, border-radius for rounded corners, image border and control how the image fits into the frame using object-fit and aspect-ratio properties. Together with some basic filters and drop shadow effects!
How to set background image to divs using only CSS. Set the image source in url of the background-image property. Using background-repeat, background-position and background-size to adjust your background.
How to set a background color or background gradients for divs and other elements in CSS. Using rgba colors instead of hex values to control the transparency.
A cool feather gradient on an image using mask-image property and linear-gradients. You can control the direction and the exact gradient stops, as well as create the effect on one or both sides / edges of the image!