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 |
Tags
- Selenium
- duckdb
- 미츠이 스미토모
- 뮌헨
- codebuild
- node.js
- 태국
- react.js
- javascript
- Python
- PostgreSQL
- 페이페이
- 체코
- CSV
- typescript
- terraform
- pyenv
- PayPay
- 熱海
- 三井住友カード
- local
- documentdb
- 카마츠루
- 釜つる
- JenkinsFile
- 아타미
- 방콕
- 프라하
- 메르페이
- vba
Archives
- Today
- Total
도쿄사는 외노자
Bootstrap Modal을 화면 가운데에 띄우기 본문
모달 크기를 키웠더니만, 자꾸 오른쪽으로만 뻗어나가더라.
bootstrap modal horizontal align center
뭐 대충 이런 식으로 구글느님 검색 돌렸더니
아래와 같은 답이 나왔다.
출처 : http://stackoverflow.com/questions/18257200/centering-modal-in-twitter-bootstrap
1 2 3 4 5 6 7 8 | $("#Modal").modal('show').css({ 'margin-top': function () { //vertical centering return -($(this).height() / 2); }, 'margin-left': function () { //Horizontal centering return -($(this).width() / 2); } }); | cs |
내 경우는 버티컬은 지금이 딱 맘에 들어서,
margin-left만 사용하고 있다.
'Tech > HTML・CSS' 카테고리의 다른 글
테이블에서 sticky로 컬럼 고정시의 border투명화 현상 해결 (2) | 2021.04.21 |
---|---|
Using encoded image in background-image (0) | 2016.12.05 |
<ul>태그 내 <li>요소의 세로정렬+줄바꿈 (0) | 2016.11.30 |
Mixed Content : Page requested an insecure stylesheet (0) | 2016.05.23 |
Tab키 이동에 따른 포커스 방지 (0) | 2016.03.25 |