What does “*” mean in CSS?

This is a common technique called a CSS reset. Different browsers use different default margins, causing sites to look different by margins. The * means “all elements” (a universal selector), so we are setting all elements to have zero margins, and zero padding, thus making them look the same in all browsers.

In CSS what is the difference between “.” and “#” when declaring a set of styles? [duplicate]

Yes, they are different… # is an id selector, used to target a single specific element with a unique id, but . is a class selector used to target multiple elements with a particular class. To put it another way: #foo {} will style the single element declared with an attribute id=”foo” .foo {} will style all elements with an attribute class=”foo” (you can have multiple classes assigned to an element too, … Read more