Question: i put to div with two different content in a parent div and i want set vertical align first div with second div

sorry for bad language

```css
.title-pin {
  position: relative;
}
.pin-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  -webkit-border-radius: 25px;
  -moz-border-radius: 25px;
  border-radius: 25px;
  text-align: center;
  background-color: #333;
  color: #fff;
}
.star {
  font-size: 30px;
  line-height: 50px;
}
.title-container {
  padding-left: 60px;
  width: 400px;
  font-size: 24px;
}
```

```html
<div class="title-pin">
  <div class="pin-icon">
    <span class="star">★</span>
  </div>
  <div class="title-container">
    <h3>This title is unstable. This title is unstable. This title is unstable.`enter code here`</h3>
  </div>
</div>
```

Answer: 
Add the following to your .pin-icon CSS. Hope this will help you.

```
.pin-icon {
  top:50%;
  margin-top:-25px;
}

```
```css
.title-pin {
  position: relative;
  display: block;      
  margin: auto;
}
.pin-icon {
 <!--remove relateive: absolute; -->
  width: 50px; <!-- add this -->
  margin-left: 55px; <!-- add this -->
  height: 50px;
  -webkit-border-radius: 25px;
  -moz-border-radius: 25px;
  border-radius: 25px;
  text-align: center;
  background-color: #333;
  color: #fff;
}
.star {
  font-size: 30px;
  line-height: 50px;
}
.title-container {
  padding-left: 60px;
  width: 400px;
  font-size: 24px;
}
```

```html
<div class="title-pin">
  <div class="pin-icon">
    <span class="star">★</span>
  </div>
  <div class="title-container">
    <h3>This title is unstable. This title is unstable. This title is unstable.`enter code here`</h3>
  </div>
</div>
```