본문 바로가기
Front/HTML

하리보 전시 입구 사진 HTML, 구현

by 자바꿈나무00 2023. 1. 11.

 

<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <link rel="stylesheet" href="../02_CSS/05_레이아웃스타일 하리보실습.css">

        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Dokdo&display=swap" rel="stylesheet">
    <title>하리보</title>

    <style>
        *{
            font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
        }
        
        
        
        #outer1 {
            background-image:linear-gradient(to right, rgb(73, 59, 5), hsl(50, 100%, 69%));
            width: 500px;
            height: 500px;
        }

        #inner1 {
            width: 70px;
            height: 50px;
            border: 3px solid rgb(165, 16, 16);
            background-color: rgb(26, 0, 170);
            border-top-left-radius: 2px;
            border-top-right-radius: 2px;
            border-bottom-left-radius: 2px;
            border-bottom-right-radius: 2px;
            box-shadow: 0px 4px 3px 0.3px; color: black;
            position: relative;
            top: 30%;
            left: 43%;
        }

        #text0 {
            width: 400px;
            font-size: 15px;
            font-weight: 900;
            position: relative;
            top: 37.3%;
            left: 13%;
            text-shadow: -1px 0px white, 0px 1px white, 1px 0px white, 0px -1px white;
            
        }

        #text1 {
            width: 400px;
            font-size: 17px;
            font-weight: 500;
            position: relative;
            margin-bottom: 0px;
            top: 30%;
            left: 24%;
        }

        
        #text2 {
            width: 400px;
            font-size: 10px;
            font-weight: 900;
            position: relative;
            margin-top: 0px;
            top: 27%;
            left: 31%;
        }


        #text3 {
            width: 400px;
            font-size: 15px;
            font-weight: 500;
            position: relative;
            margin-top: 0px;
            top: 28%;
            left: 30%;
        }

        #text1, #text2, #text3{
            color: rgb(7, 7, 145);
        }

        #text2, #text3{
            font-family: 'Jua', sans-serif;
        }

    </style>
</head>

<body>
    <br><br><br><br>
    <label>실습중</label>
    <div id="outer1">
        <div id="inner1">
            <img src="../resources/image/로고.JPG" width="70px" >
            <div id="inner2"></div>
        </div>

        <div id="text0" style="color: darkred;"><p>HRIBBO</p> </div>
        <div id="text1" ><p>macht kinfer froh und Erwachense ebenso! </p></div>
        <div id="text2">
            <p>하리보는 아이들을 즐겁게 해요. 그리고 어른들도!</p>
        </div>
        <div id="text3">
            <p style="font-family: Jua;">함께해요 모두 다, 행복해요 하리보!</p>
        </div>
    </div>

    <br>
    <label>따라할 사진</label>
    <br>
    <img src="../resources/image/KakaoTalk_20230110_204038485.jpg" width="400px" >
    
</html>    
</body>

 

@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

#text3 {
    font-family: 'Jua', sans-serif;
}

 

그런데 웹폰트 적용이 프리뷰에서는 보이지만 브라우저로 열었을 때는 적용되지 않고 보인다.

뭐지..?

'Front > HTML' 카테고리의 다른 글

HTML개요  (0) 2023.01.19
HTML5 type & tags  (0) 2023.01.05
HTML5 태그2  (0) 2023.01.04
HTML5 태그1  (0) 2023.01.03