Skip to content

Minhchau0108/CSSLayoutChallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CSSLayoutChallenge

Position

  1. Relative
  • the space is preserved as empty space.
  • commonly used to create a “positioning context” for an absolutely positioned element. Ex: .container {position: relative}
  1. Absolute
  • if the element absolute is not contained within another positioned element, then it will be placed relative to the initial containing block (created by the html element).
  • if the element has an ancestor (i.e., is contained within an element) that has its position set to relative, absolute, or fixed, the element will be positioned relative to the edges of that element instead. The actual position is specified with some combination of up to four offset properties: top, right, bottom, left. Ex: .child {position: absolute; left: 50px, top: 50px}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published