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.

  • 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

Encourage students to ask their peers for a fresh set of eyes to help them find small, tedious errors and hidden bugs.
Walk students through clicking on links in Java Docs to figure out unknown words and concepts (like iterable) by exploring the detailed explanation; plus the AP test expects students to read Java Docs online.
Have students design projects based on content from their other courses, and have them brainstorm how the code they write might be useful in a variety of fields. This broadens their understanding of CS’s many applications.

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

Privacy Policy