패딩을 사용하여 텍스트의 양쪽에 두 개의 이미지를 정렬하려고합니다.텍스트 옆에 이미지 패딩
저는 왼쪽에서 작동하지만 오른쪽에서는 작동하지 않습니다.
왜 10px 아래로 떨어지지 않습니까?
HTML :
<img class="q1" src="http://i62.tinypic.com/2dkh7p2.png"/>
This is the quoted text, but how can I get the right img to align? Right now it's too high! --->
<img class="q2" src="http://i62.tinypic.com/282f3mr.png" />
CSS :
.q1 {
padding-right:2px;
padding-bottom:10px;
}
.q2 {
padding-left:2px;
margin-top:10px;
}
바이올린 : http://jsfiddle.net/vvDdR/1/
당신은 적절한 텍스트 태그에 텍스트를 포장한다 ... 할 것 더 쉽습니다. –
그게 당신이 찾고있는가요? http : // jsfiddle.net/vvDdR/7/ – melancia