이미지 텍스트

이미지 텍스트
[Top Left] 소스
<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
}
.topleft {
position: absolute;
top: 8px;
left: 16px;
font-size: 18px;
}
img {
width: 100%;
height: auto;
opacity: 0.3;
}
</style>
</head>
<body>
<h2>Image Text</h2>
<p>Add some text to an image in the top left corner:</p>
<div class="container">
<img src="trolltunga.jpg" alt="Norway" width="1000" height="300">
<div class="topleft">Top Left</div>
</div>
</body>
</html>
[Right Top]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
}
.topright {
position: absolute;
top: 8px;
right: 16px;
font-size: 18px;
}
img {
width: 100%;
height: auto;
opacity: 0.3;
}
</style>
</head>
<body>
<h2>Image Text</h2>
<p>Add some text to an image in the top right corner:</p>
<div class="container">
<img src="trolltunga.jpg" alt="Norway" width="1000" height="300">
<div class="topright">Top Right</div>
</div>
</body>
</html>
[Bottom Left]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
}
.bottomleft {
position: absolute;
bottom: 8px;
left: 16px;
font-size: 18px;
}
img {
width: 100%;
height: auto;
opacity: 0.3;
}
</style>
</head>
<body>
<h2>Image Text</h2>
<p>Add some text to an image in the bottom left corner:</p>
<div class="container">
<img src="trolltunga.jpg" alt="Norway" width="1000" height="300">
<div class="bottomleft">Bottom Left</div>
</div>
</body>
</html>
[Bottom Right]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
}
.bottomright {
position: absolute;
bottom: 8px;
right: 16px;
font-size: 18px;
}
img {
width: 100%;
height: auto;
opacity: 0.3;
}
</style>
</head>
<body>
<h2>Image Text</h2>
<p>Add some text to an image in the bottom right corner:</p>
<div class="container">
<img src="trolltunga.jpg" alt="Norway" width="1000" height="300">
<div class="bottomright">Bottom Right</div>
</div>
</body>
</html>
[Center]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
}
.center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 18px;
}
img {
width: 100%;
height: auto;
opacity: 0.3;
}
</style>
</head>
<body>
<h2>Image Text</h2>
<p>Center text in image:</p>
<div class="container">
<img src="trolltunga.jpg" alt="Norway" width="1000" height="300">
<div class="center">Centered</div>
</div>
</body>
</html>
게시글 목록
| 번호 | 제목 |
|---|---|
| 3087 | |
| 3086 | |
| 3085 |
CSS
테이블 수평 분배기
|
| 3084 |
CSS
테이블 패딩
|
| 3083 |
CSS
테치블 수직 정렬
|
| 3082 |
CSS
테이블 수평 정렬
|
| 3081 |
CSS
표 너비와 높이
|
| 3080 |
CSS
표 축소 창
|
| 3079 |
CSS
표 테두리
|
| 3078 |
CSS
스타일리스트 색상
|
| 3077 |
CSS
목록 - 속기 속성
|
| 3076 | |
| 3075 | |
| 3074 | |
| 3073 | |
| 3072 |
CSS
CSS Links 배경색
|
| 3071 | |
| 3070 |
CSS
CSS Links 스타일 링크
|
| 3069 |
CSS
scale () 메서드
|
| 3068 |
CSS
rotate () 메서드
|
| 3067 | |
| 3065 |
CSS
부트 스트랩 아이콘
|
| 3064 | |
| 3063 |
CSS
Font Weight
1
|
| 3062 |
CSS
백분율과 em의 조합 사용
1
|
| 3061 | |
| 3060 |
CSS
Font Size 글자 크기
|
| 3059 | |
| 3058 | |
| 3057 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기