채택완료

css입문자입니다.

2018-10-23 (화) 09:39:42 2,833

이게 맞는 문법인가요?

<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>

폰트에 볼드를 주고싶고 각이벤트에 동일한폰트(볼드, 14px)에 색상만 바꾸고 싶습니다. 방법이 있나요?

|

답변 1개

채택된 답변
+20 포인트
Copy
<style>

.menu {font-family: "나눔고딕";color:#000; font-size:14px;

     font-wieght:bold; /* 여기를 추가하세요*/

}

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>

그리고, 사용하실 태그가

사용하실 태그의 ID ,  Class의 차이는 

아래 URL을 참고하세요

http://www.homejjang.com/07/class_id.php

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