A pixel is a dot on your computer screen. Specifying font sizes in pixels is great when you want the user to see exactly on their screen what you designed on yours, though it assumes your screens are of similar size.
What ifthe user is using a screen that's a very different size from yours, though (like a smartphone screen)? Enter ems. (Don't confuse these withthe <em></em> tags we use for emphasis!)
font knowledge
serif: A font with little decorative bits onthe ends ofthe strokes that make up letters. Do a search on"serif"to see what we mean.
sans-serif: A plain-looking font, like this one. It doesn't have the little doohickies onthe ends of letters like a serif font does.
cursive: A scripty font! It looks like cursive writing.
use <div></div>
height
width
border-color
background-color
border-radius
Positioning your button
margin: auto; Make sure tosetequal margins on each side of this HTML element. When the margins are equal, the object is centered.
text-align: center;
is how you center text elements.
What css is?CSS (which stands for Cascading Style Sheets) is a language used to describe the appearance and formatting of your HTML. <link rel="stylesheet" type="text/css" href="html.css" />selecto