You need to float child element, or change display property to change it's position inside parent element.
Floating
HTML
<div class="header"></div>
<div class="wrap">
<div class="content"></div>
</div>
SCSS
.header {
width: 100%;
height: 80px;
background-color: black;
}
.wrap {
width: 70%;
height: 500px;
background-color: green;
margin: 0 auto;
.content {
margin-top: 30px;
width: 100px;
height: 100px;
background: red;
float: left;
}
}
Display
Or just change display:inline-block for child element
HTML same code
SCSS
...
.content {
margin-top: 30px;
width: 100px;
height: 100px;
background: red;
display: inline-block;
}...