2017-09-22 1 views
2

내부에 resonsive 텍스트를 만드는 방법 텍스트가 있고 p 태그도 div 태그 안에 있습니다. 반응이 좋으려면 tex가 필요합니다.p 태그

이 내 HTML과 CSS 코드

<div class="row"> 
     <div class="col-md-4"> 
      <div id="box4"> 
       <p><a href="#" class="texto4">Brigadistas</a></p> 
      </div> 
     </div> 

     <div class="col-md-4"> 
      <div id="box5"> 
       <p><a href="#" class="texto5">Copasst</a></p>  
      </div> 
     </div> 

     <div class="col-md-4"> 
     <div id="box6"> 
      <p><a href="#" class="texto6">Normatividad</a></p> 
      </div> 
     </div> 
    </div> 


#box4 p a{ 

    text-align: center; 
    position: relative; 
    width: 100%; 
    bottom: 63px; 
    left: 57px; 
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; 
    font-size: 20px; 
    color: white; 

} 

#box5 p a{ 

    text-align: center; 
    position: relative; 
    width: 100%; 
    bottom: 63px; 
    left: 57px; 
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; 
    font-size: 20px; 
    color: white; 

} 


#box6 p a { 

    text-align: center; 
    position: relative; 
    bottom: 63px; 
    left: 57px; 
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; 
    font-size: 20px; 
    color: white; 

}

는 P 태그 안의 텍스트가 브라우저의 크기를 조정 사업부의 외부이다.

너비 : 100 %를 사용했지만 아무 일도 발생하지 않습니다.

해결 내 problem

+0

응답 방법은 무엇입니까? – Adarsh

+0

Adarsh ​​좀 도와주세요. –

+0

%, em, rem, vh, vw 등과 같은 상대 값보다는 절대 크기 및 위치 지정 (픽셀, 픽셀)을 사용하고 있습니다.이 링크가 유용 할 수 있습니다. http://www.creativebloq.com/rwd/responsive -web-design-tutorials-71410085 –

답변

0

문제의 스크린 샷이다. 감사! 나는 %

#box4,#box5,#box6{ 

    width: 60%; 
    background:rgba(43,86,162,1.00); 
    margin-top:34%; 
    padding-top: 34%; 
    margin-bottom: 14%; 
    position: relative; 
    left:24%; 
    border-radius:12%; 
    border:5px solid rgb(178,205,73); 
} 

#box4 p a{ 

    text-align: center; 
    position: absolute; 
    width: 100%; 
    bottom: 33%; 
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; 
    font-size: 140%; 
    color: white; 

} 

#box5 p a{ 

    text-align: center; 
    position: absolute; 
    width: 100%; 
    bottom: 33%; 
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; 
    font-size: 140%; 
    color: white; 

} 


#box6 p a { 

    text-align: center; 
    position: absolute; 
    width: 100%; 
    bottom: 33%; 
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; 
    font-size: 140%; 
    color: white;