채택완료

CSS 질문 드립니다.

2015-06-09 (화) 15:16:02 3,861

전체 CSS가 적용이 된 상태에서,

부분적으로만 폰트에 컬러를 주려면 어떻게 하는것이 좋을까요? 

답변 4개

채택된 답변
+20 포인트
2015-06-09 (화) 15:18:02

적용할 부분에 따로 class를 주고

클래스에 폰트컬러를 주면 안되는건가요 ? 

2015-06-09 (화) 16:39:33

class  넣기 까다로운 경우라면

style="color:#fff !important;"

 이방법도 좋아요~~ 

2015-06-09 (화) 16:05:53

.other_color a:hover,.other_color​ a:focus,.other_color​ a:active,.other_color​ a:link,.other_color​ a:visited { 

color:#0FF;

}  

이렇게 해보세요

2015-06-09 (화) 15:22:43

에이치님, 그렇게는 안되네요 ^^;;; 

링크색상은 변경되지 않고, 마우스를 올렸을때만 바뀌네요..

 

.other_color a:hover, a:focus, a:active, a:link, a:visited { 

color:#0FF;

} 

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