×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Bradley Train
Added: Aug 7, 2014 1:58 PM
Modified: Aug 7, 2014 2:00 PM
Views: 15
Tags: no tags
1) The star symbol will target every single element on the page.
2)The star can also be used with child selectors.
This will target every single element that is a child of the #container div.
  1. 1) * {
  2.  margin: 0;
  3.  padding: 0;
  4. }
  5.  
  6. 2) #container * {
  7.  border: 1px solid black;
  8. }