CSS Flashcards
what are embeddedStyle Sheets?
enable you to embed a CSS3 document in an HTML5 document’s head section.
CSS position property
The position property specifies the type of positioning method used for an element (static, relative, absolute, fixed, or sticky).
CSS POSitioning when you specify an elements normal flow or position in a doc you can remove those attributes
Specifying an element’s position as absolute removes it from the normal flow of elements on the page and positions it according to distance from the top, left, right or bottom margin of its parent element
z-index property
The z-index property specifies the stack order of an element.
An element with greater stack order is always in front of an element with a lower stack order.
A page element with relative positioning gives you the control to absolutely position children elements inside of it.
relative positioning,
Inline Elements
An inline element does not start on a new line and it only takes up as much width as necessary.
This is a <span> element inside a paragraph.</span>
Block-Level Elements
Inline-level elements
Grouping element
Does not apply any formatting to its contents
Creates a container for CSS rules or id attributes to be applied to a section
Grouping element does not apply any formatting to its content ?? Creates a container ? NOT UNDERSTOOD
EXAMPLE OF BLOCK LEVEL ELEMENTS DISPLAYED ON THERE OWN LINE
EXAMPLE OF BLOCK LEVEL ELEMENTS DISPLAYED ON THERE OWN LINE
all headings (h1 through h6)
div
A grouping element like span
back ground controls
Setting the tiling to no-repeat displays one copy of the background image on screen
back ground controls
Setting to repeat (the default) tiles the image vertically and horizontally
back ground controls
Setting to repeat-x tiles the image only horizontally
Setting to repeat-y tile the image only vertically
Fixed back ground scrolling browser will not move the image
background-attachment: fixed Property
Fixes the image in the position specified by background-position.
Image back ground position (default at scroll)
The default value, scroll, moves the image as the user scrolls the window
text-align Property
Text-align properties can move posting of text in an element using text-align: center: left; right;
overflow Property
The overflow property specifies what should happen if content overflows an element’s box.
This property specifies whether to clip content or to add scrollbars when an element’s content is too big to fit in a specified area.