강의

멘토링

로드맵

Inflearn Community Q&A

spdlqj5050537's profile image
spdlqj5050537

asked

HTML+CSS+JS Portfolio Practical Publishing (Season 2)

CSS Hover Effects - Outline Text

-webkit-text-stroke 밑줄표시

Written on

·

456

2

-webkit-text-stroke를 쓰면 글자끝마다 이상한 무늬가 추가됩니다.

-webkit-text-stroke를 쓰면 밑줄표시로 쓰지말라는 표시가 나오는데 이제 더이상 안쓰는건가요?? 

 

html소스코드

<!DOCTYPE html>
<html lang="en">
<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">
    <title>CSS호버이펙트 아웃라인 텍스트</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <a class="btn" href="#none" data-text="Portfolio">Portfolio</a>
</body>
</html>

css 소스코드

@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn{
    color: transparent;
    text-decoration: none;
    font-size: 10em;
    font-weight: 600;
    -webkit-text-stroke: 1px red;
}
javascriptjqueryHTML/CSS

Answer 1

2

codingworks님의 프로필 이미지
codingworks
Instructor

저도 해보니까 45도 돌아간 삼각형이 나오네요.

그래서 다른 폰트로 해봤데 그런 문제가 없습니다.

저도 이유는 모르지만 Montserrat 폰트 CDN이 좀 이상해졌나 봅니다.

노토산스로도 해봤는데 문제 없어요.

spdlqj5050537's profile image
spdlqj5050537

asked

Ask a question