Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Compare adding padding to elements in CSS to adding fillings to a sandwich; it actually increases the total width.

Share Compare adding padding to elements in CSS to adding fillings to a sandwich; it actually increases the total width. with FacebookShare Compare adding padding to elements in CSS to adding fillings to a sandwich; it actually increases the total width. with Twitter
  • When you add ingredients to a sandwich, it won’t stay the same size, it will actually get bigger.
  • The same goes for an element with padding, it actually gets bigger.

More about this tip

Tags

  • Meaningful and Relevant Content
  • CSS
External Source

Interview with Corina Acosta

Other Tips By
Other Tips By Corina Acosta

Similar tips

Use Easter eggs and a seed sorter to teach arrays of objects because students find arrays of objects hard and need the additional scaffolding.
Use a number-guessing game that pushes students to use binary search in a fun and interactive activity that allows you to introduce binary sort in a grounded manner.
Misconception: Students may write code in HTML and CSS that contains many errors yet still renders correctly, leaving them with faulty understandings of concepts and acceptable code.
  • CSTT Facebook
  • CSTT Twitter

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Footer Icons by Mohammed Alyousfi. Powered by Drupal.

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College