내 홈페이지에서 navbar의 요소를 세로로 정렬하려고합니다. div 안에는 ul이 있는데 그 안에 li가 들어있는 태그가 있습니다. 지금까지 수직 배열은 실제로 작동하지 않았습니다. SASS, 에헴,세로 정렬 자식 요소
.navcontainer
%div#middle
%ul#nav
%li
= link_to 'About', '#'
%li#signup
= link_to 'Sign Up', '#', :id => "signup"
= render 'devise/registrations/new'
%li#login
= link_to 'Login', '#', :id =>'login'
= render 'devise/sessions/new'
을 그리고 여기에 관련된 CSS의 : 다음은 HAML입니다 도움에 미리
// Nav Bar
.navcontainer{
width: 100%;
background: $gray;
position: absolute;
bottom: 0;
left: 0;
height: 60px;
ul li{
float: left;
list-style: none;
a{
color: white;
text-decoration: none;
float: left;
font-family: Domine;
text-transform: uppercase;
font-size: 25px;
padding-left: 15px;
-webkit-transition-duration: 0.35s;
&:visited{
color: white;
text-decoration: none;
}
&:hover{
color: $hovercolor;
-webkit-transition-duration: 0.35s;
}
}
}
}
// RegistrationFields and Partials
.registration{
display: inline-block;
#new_user{
input {
border-radius: 10px;
height:26px !important;
padding: 0px;
display: inline-block;
float:left;
border:none;
margin-left: 5px;
padding: 0 5px 0 5px;
}
}
}
감사합니다! 탐색 막대가 고정 된 높이 인 경우
언제든지 간단한 [jsfiddle] (http://jsfiddle.net)을 설정할 수 있습니까? – Adrift
btw, "css"가 아닙니다 – Ven
@ user1737909, CSS가 아닌 것은 무엇입니까? – Ryan