2014-10-03 8 views
0

오전 사용 bootstrap.min.css 내가 설명 할 수없는 공간이

listed with box

두 사업부 사이에 설명 할 수없는 공간을 얻을 내가 공백을 제거하지만 작품을 div + div {margin-top:0px;}

을 does't하려면 다음 코드를 사용

방법 공백을 제거하는

<section id="service" style="background-color:#009999;"> 
    <div class="container"> 
    </div> 
</section> 
    <!-------------white space appear here------------> 
<section id="contact" style="background-color:#009999;"> 
    <div class="container"> 
    </div> 
</section> 

enter image description here

+0

당신은'DIV + div'을 사용할 수 없습니다 귀하의 CSS 코드와 (jsfiddle) 예제를 설정하고 당신에게 문제를주는 영역의 HTML을 완료하십시오. 추신. 두 섹션 모두 코드에서 동일한 'id'를 갖지 않기를 바란다. – monkeyinsight

+1

이 줄을 제거 border-bottom: 1px solid #e9e9e9;

greener

+0

@greener 두 섹션 태그에 다른 ID가있다. –

답변

1
.box { 
padding: 50px 30px; 
background: #fff; 
border-bottom: 1px solid #e9e9e9; 
position: relative; 
} 
그들은 내부의 서로 다른 요소가 http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors을하기 때문에 당신이해야 할 수도 있습니다
관련 문제