<header>
<div id="logo">
<h1>
<a href="https://https://gall.dcinside.com/board/write/?id=programming/">프로그래밍</a>
</h1>
</div>
<div id="input-center">
<h2>검색창</h2>
<fieldset>
<legend>검색</legend>
<input />
<button>검색</button>
</fieldset>
</div>
</header>
여기서 css를
div#logo{
display: inline-block;
margin: 0 auto;
width: 140px;
}
#input-center fieldset{
margin: 0 auto;
width: 430px;
display: inline-block;
}
#input-center h2 {
display: none;
}
이렇게 넣었는데
프로그래밍이라는 로고하고 검색창이 같은 행으로 안가고
프로그래밍 아래 행에 검색이 넣어지더라고..
같은줄로 바꾸려면 어떻게 해야돼??
같이묶으면되지
로고하고 검색창을 포함하는 aaa라는 새 div 만들어도 같은줄로 안가 ㅠㅠ
싹다 묶어서 display flex