From IT Skills
Jump to: navigation, search

Important for layouting[edit | edit source]

  • float: left or right (it is normal to reverse <il> order when float:right)
    • if child has float: set then child does not influence on parent's height
    • clear
  • display: block, inline, inline-block or flex
  • position:
    • absolute allows place any page element exactly relative to the next parent element with relative (or absolute) positioning or <html>. An element with this type of positioning is not affected by other elements and it doesn't affect other elements.
    • fixed is fairly rare but certainly has its uses. A fixed position element is positioned relative to the viewport, or the browser window itself. The viewport doesn't change when the window is scrolled.
  • inherited:
    • text-align:

CSS doesn't support unset for the top property. You must use auto, a percentage, or a length. (edit: or inherit, or initial)


This category has the following 4 subcategories, out of 4 total.





Pages in category "Css essentials"

The following 6 pages are in this category, out of 6 total.