<div class="input-icon">
  <input type="text" class="input"/>
  <div class="icon">?</div>
</div>
.input-icon{
  height: 100px;
  width: 200px;
  padding: 1rem;
  border: 1px dashed red;
  display: inline-block;
}

.input {
  padding: .8rem 1rem;
}

.icon {
  padding: .4rem .6rem;
  display: block;
  border: 1px dashed black;
  position: relative;
  top: -37px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.