티스토리 뷰
HTML
| <div class="fixed-cta-bar1or2"> <a href="이동할_링크_주소" class="cta-button">무료체험하고 확인하기 →</a> </div> or 이미 이미지로 버튼 모양이 다 갖추어진 경우 <div class="fixed-cta-bar1or2"> <a href="이동할_링크_주소" >무료체험하고 확인하기 →</a> </div> ---------------------------------- 요약
|
CSS - 하단고정
| .fixed-cta-bar1 { position: fixed; bottom: 0; /* 화면 하단에 밀착 */ left: 0; width: 100%; /* 좌우 꽉 차게 */ padding: 12px; background-color: #ffffff; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* 약간의 그림자 효과 */ z-index: 9999; /* 다른 요소보다 항상 위에 나오도록 설정 */ text-align: center; } .cta-button { display: inline-block; width: 90%; max-width: 400px; padding: 15px 0; background-color: #ff3355; color: #ffffff; font-weight: bold; font-size: 18px; text-decoration: none; border-radius: 8px; } |
CSS - 상단 고정
| .fixed-cta-bar2 { position: fixed; top: 0; /* 화면 상단에 밀착 */ left: 0; width: 100%; z-index: 9999; /* 이하 동일 */ } |
9999999999999999999999ㄱㄱ999999999999999999
9999999999999999999999999999999999999999999999
'테크 코드' 카테고리의 다른 글
| 페이지 내에서 클릭 이동 테스트 (0) | 2026.08.20 |
|---|---|
| 이미지들 (src 주소 복사용) (0) | 2026.07.30 |
