게시판 본문 이미지 가로정렬 ?
본문
안녕 하세요
게시판 본문에 이미지 2개를
가로 로 정렬 하려고 합니다
게시판 입력ㅡhtml 쓰기
아래와 같이 입력 햇는데
세로정렬 로 되고
가로정렬이 안됩니다
본문 내용작성 html 쓰기 에는
아래코드가 안먹히는건지
아니면
코드가 잘못 된건지
고수님들께서
한번 살펴봐 주시고
도움좀 부탁 드립니다
<div>
<div style="display:inline; width:48%;">
<img src="http:/이미지A>
</div>
<div style="display:inline; width:48%;">
<img src="http:/이미지B>
</div> </div>
답변 2
본문? edit 안에 서의 최고 부모는 html는 % 기준이 아닙니다. px기준이 됩니다. display:lnline; 텍스트를 사용하시면않되고 flex or inline-block; 속성을 가져줘야합니다
<div style="display: flex; justify-content: space-between; width: 100%;">
<div style="width: 48%;">
<img src="http://이미지A" style="width: 100%;">
</div>
<div style="width: 48%;">
<img src="http://이미지B" style="width: 100%;">
</div>
</div> // 이런식으로 해보시기 바랍니다.
구글링 하루종일 디져서
자체 해결 햇습니다
margin:0 auto; 태그로
<div> 박스 가운데 정렬하고
float: 태그로 이미지 3개 가로정렬 햇습니다