이미지 텍스트
이미지 텍스트

이미지 텍스트
[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>
게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 857 | HTML | 8년 전 | 1390 | ||
| 856 | HTML | 8년 전 | 1846 | ||
| 855 | HTML | 8년 전 | 2083 | ||
| 854 | HTML | 8년 전 | 1498 | ||
| 853 | HTML | 8년 전 | 2195 | ||
| 852 | HTML | 8년 전 | 3274 | ||
| 851 | HTML | 8년 전 | 3245 | ||
| 850 | HTML | 8년 전 | 2087 | ||
| 849 | HTML | 8년 전 | 1667 | ||
| 848 | HTML | 8년 전 | 1824 | ||
| 847 | HTML | 8년 전 | 1715 | ||
| 846 | HTML | 8년 전 | 1911 | ||
| 845 | HTML | 8년 전 | 2037 | ||
| 844 | HTML | 8년 전 | 1979 | ||
| 843 | HTML | 8년 전 | 2200 | ||
| 842 | HTML | 8년 전 | 2044 | ||
| 841 | HTML | 8년 전 | 1966 | ||
| 840 | HTML | 8년 전 | 2327 | ||
| 839 | HTML | 8년 전 | 1908 | ||
| 838 | HTML | 8년 전 | 2177 | ||
| 837 | HTML | 8년 전 | 2014 | ||
| 836 | HTML | 8년 전 | 2035 | ||
| 835 | HTML | 8년 전 | 2198 | ||
| 834 | HTML | 8년 전 | 1541 | ||
| 833 | HTML | 8년 전 | 1897 | ||
| 832 | HTML | 8년 전 | 1380 | ||
| 831 | HTML | 8년 전 | 2437 | ||
| 830 | HTML | 8년 전 | 1652 | ||
| 829 | HTML | 8년 전 | 1260 | ||
| 828 | HTML | 8년 전 | 2477 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기