채택완료

css 질문드립니다

2018-10-23 (화) 08:59:26 2,123

이게 맞는 문법인가요?

<style>

menu {font-family: "나눔고딕";color:#000; font-size:14px;} /* 홈짱닷컴 스타일*/

a:link {
 color: #000;
 text-decoration: none;
}
a:visited {
 color: #000;
 text-decoration: none;
}
a:hover {
 color: #000;
 text-decoration: none;
}
a:active {
 color: #000;
 text-decoration: none;
}

 </style>

|

답변 2개

채택된 답변
+20 포인트

<div id="menu"></div>

객체를 id로 선언하셨으면

#menu {font-family: "나눔고딕";color:#000; font-size:14px;} /* 홈짱닷컴 스타일*/

<div class="menu"></div>

객체를 class로 선언하셨으면

.menu {font-family: "나눔고딕";color:#000; font-size:14px;} /* 홈짱닷컴 스타일*/

<style>

css의 맨 앞

에

menu 는 태그에 적용하는 방식입니다.

class 에 적용하시려면

.menu 

로  . 을 추가해야 합니다.

답변을 작성하려면 로그인이 필요합니다.