CSS Tips & Tricks: Element with fixed aspect ratio

Subscribers:
3,740
Published on ● Video Link: https://www.youtube.com/watch?v=a9t9PZNhGL8



Duration: 7:10
844 views
18


CSS Tips & Tricks: Element with fixed aspect ratio

Timestamps:
0:00 - Introduction (item with fixed aspect ratio)
2:02 - Solution 1: Padding percentage is based on parent's width
5:25 - Solution 2: aspect-ratio CSS property

* Credits:
Music:
Artist : Oneul
Link : https://youtu.be/eqr7uTxlekc

Photo by Victor Grabarczyk on Unsplash

#frontend #css #webdev #html
#CSSTricks #coding #programming #vscode
HTML5, CSS3, WebKit, Chrome, Firefox, Web development




Other Videos By Emilia Kaida - Heroes 3 forever


2022-07-07Heroes 3: The triumphant return of our Elven army - Defeating a powerful Conflux opponent!
2022-06-23Heroes 3: Intense fight with 9999 Dragons and level 7 creatures (no Berserk, all-out boss battle)
2022-06-16Heroes 3: Żołnierze dendroidów kontra stwory poziomu 7 (Dendroid Soldiers vs Level 7 Creatures)
2022-06-02Heroes 3: Of Elves, Dendroids and Unicorns - An epic tale!
2022-05-17Heroes 3: Bombarding enemies with the Cloak of Absolute Power!
2022-05-04Heroes 3 Complete: Crushing opponents with the Angelic Alliance (Map: Free For All, 200%)
2022-05-03Heroes III: Necropolis + Rampart vs a formidable opponent (Map: Free For All)
2022-03-08Javascript Tutorial: Event listener (handler) with parameters
2021-12-24Heroes III: Battle with a Stronghold opponent (Map: Paragon 2.0)
2021-12-04HTML & CSS Tutorial: Polaroid Image Gallery
2021-11-20CSS Tips & Tricks: Element with fixed aspect ratio
2021-11-10Tutorial: Gradient inside text (pure CSS & Tailwind CSS)
2021-10-23Heroes III: Rampart, Kyrre and a happy ending
2021-10-14Heroes 3: Small battle with Kyrre (World 4 You, Rampart, 200%)
2021-10-02Heroes III: Necropolis vs some random Fortress opponent
2021-09-11Heroes 3: Necropolis redux - A few Skeleton Warriors (amazing battles!!!🚀🔥🔥🚀)
2021-09-05Heroes 3: Necropolis redux, Vidomina vs Loynis (Castle)
2021-08-27Heroes 3 Complete playthrough: Pandora's Box (200%, Rampart), part 2 (END)
2021-08-23Heroes 3 Complete playthrough: Pandora's Box (200%, Rampart), part 1
2021-08-10Heroes 3 Complete playthrough: Arrogance (200%, Necropolis)
2021-07-21[Python] Small functional exercise (Dictionary comprehension + Lambda)



Tags:
webdev
programming
code
coding
css
tips
tricks
vscode
html
aspect-ratio