Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 함수
- array
- assignment operator
- Class
- Deep Learning
- pointer
- OOP
- programming
- 배열
- Python
- 알고리즘
- Object Oriented Programming
- 백준
- C++
- 포인터
- const
- 티스토리챌린지
- 파이썬
- string
- Data Science
- 반복문
- raw data
- 문자열
- baekjoon
- vscode
- function
- Pre-processing
- 오블완
- pass by reference
- predictive analysis
Archives
- Today
- Total
Channi Studies
[html/css] css positioning 본문
css positioning에는 static, relative, absolute, fixed가 있다.
다음 링크가 이해에 도움을 줄 수 있다
appbrewery.github.io/css-positioning/
style="position = positioning;"으로 적용
1. Static
html 기본값
이전 요소의 아래로 배치됨
2. Relative
기본 위치를 기준으로 배치
3. Absolute
부모 태그를 기준으로 relative 배치
부모 태그가 존재하지 않을 시 화면 좌측상단에 배치
z-index를 최 상단으로 보이기 때문에, z index를 -로 바꾸어야 할 수 있음
4. Fixed
브라우저 창 좌측상단을 기준으로 relative 배치
브라우저를 상하로 움직여도 항상 같은 위치에 존재
다음 링크가 이해에 도움을 줄 수 있다
'html.css' 카테고리의 다른 글
[html/css] css selectors(선택자) (0) | 2023.09.25 |
---|---|
[html/css] css cascading 순서 (0) | 2023.09.25 |