기타 자료

[HTML] 코드아카데미 문제풀이 "Build a Website: CSS Layout" (2/4)

Quill 2014. 8. 4. 13:27

[HTML] 코드아카데미 문제풀이 "Build a Website: CSS Layout" (2/4)

 



Navigation

 



1. 문제  


원문링크


The navigation menus are made up of two ul elements. In each ul, the li elements display on new lines because they are block elements. Let's style the li elements so that they display on the same line. This can be done with the display property.

 


 

2. 풀이



nav 클래스의 li (리스트요소)에 display 속성을 inline으로 정해준다.





3. 해답



main.css에 다음과 같이 입력하면 통과합니다.


.nav li{display:inline;}

 

 

 

 

전체 목록 바로가기

 



 

 

 

반응형