FAQ Page

Q. What is the CSS box model?

The CSS box model is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content.

Q. What is the difference between margin and padding?

Margin properties are used to create space around elements, outside of any defined borders while padding properties are used to generate space around an elment's content, inside of any defined borders.

Q. How is an HTML element height and width determined?

An HTML element height is determined by using "height:#px;" or "height:#%;". An HTML element width is determined in the same manner but replacing the term "height" with "width".

Q. Explain this CSS property: padding:25px 50px;

Top and bottom padding are 25px, right and left padding are 50px.

Q. What is the difference between a border and outline?

Borders and outline are nearly the same thing but with borders, you can target each side individually{top, left, right, bottom). With outlines, its either all or none. The other difference is that borders take up physical space on your page while outlines do not. Outlines overlay on top of the element itself.