position:static
이라 따로 명시하지 않아도 됨.기존(static)이었을 때의 위치를 기준
으로 top, right, bottom, left 방향으로 주어진 픽셀만큼 이동한다.기본상태(static)을 제외한 나머지 포지션(relative, absolute, fixed)등의 조상태그를 대상
으로 움직인다.주의할점! top, right, bottom, left 으로 부터 움직인다. 단순히 {top:5px} 이라고
위로 5px
이 아니라!위로부터 5px
따라서, 위로부터 아래로 5px.
<span>, <a>
등이 있다.width, height
는 적용되지 않고 margin, padding
은 좌,우만 적용되고 상,하는 적용되지 않는다.<div>, <p>, <h1>
등이 있다.width, height, margin, padding
모두 적용된다.<button>, <select>
등이 있다.width, height, margin, padding
모두 적용된다.dispaly : inline-block
위와 같이 지정하면, 한줄에 원하는 너비만큼 배치할 수 있다.
예시) {float: right}
예시) {clear: right}, {clear: both}