CSS Flashcards
What does the “display inline-block” positioning property do?
This makes the element a block box, but will allow other elements to sit next to it on the same line.
What does the “display block” positioning property do?
This makes the element a block box. It wont let anything sit next to it on the page! It takes up the full width.
What does the “display inline” positioning property do?
This makes the element sit on the same line as another element, but without formatting it like a block. It only takes up as much width as it needs (not the whole line).
What does the “display none” positioning property do?
This makes the element and its content disappear from the page entirely!
What does CSS stand for?
Cascading Style Sheets
What is inline CSS?
Inline CSS allows you to do styling directly in the HTML document without worrying about a seperate CSS file.
What is the tag attribute for using inline CSS?
ex. <p style="font-size: 20px;">
What is the CSS style attribute for changing the font size?
font-size: px or pts or %
What is the CSS style attribute for changing the font color?
color:red; or color:#000FFF, etc
What is the CSS style attribute for changing the font?
font-family: [font name]
What is the style attribute for changing color of an html element or webpage’s background?
background-color:
If you want to change the entire page’s background to a specific color, in which tag would you place the CSS style attribute?
What is the style attribute for aligning text within an html document?
text-align: [left, right, or center]