8.6.4
CSS layouts, animations and transitions (8.6.4) is a Class 9 Computer Science lesson for the Punjab boards. It walks through the idea in plain steps, then sets a short check, in English, Urdu or Roman Urdu.
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
Chapter 1 of every subject is free. Unlock every chapter of this class with the full course.
Unlock full courseAlready paid? Sign in with the Google account you paid with.
<div> and <section> group content. CSS Grid arranges items in rows and columns (grid-template-columns); Flexbox lines items up in a row or column (justify-content); position with top and left places them exactly.
Margin is space outside an element; padding is space inside it. With the border and content they form the box model.
Animations use @keyframes (from red to yellow) and the animation property (name, duration, repeats, timing). Transitions change a property smoothly, e.g. on :hover a box grows from 100px to 200px over 2 s.
Step 1 / 1
<div> and <section> group content. CSS Grid arranges items in rows and columns (grid-template-columns); Flexbox lines items up in a row or column (justify-content); position with top and left places them exactly.
Margin is space outside an element; padding is space inside it. With the border and content they form the box model.
Animations use @keyframes (from red to yellow) and the animation property (name, duration, repeats, timing). Transitions change a property smoothly, e.g. on :hover a box grows from 100px to 200px over 2 s.
Margin outside, padding inside.
Found a mistake? Tell us the lesson and the line at exciting@boringeducation.com.
No ads. Tell us what to fix.