<div class="input-icon">
  <input type="text" class="input"/>
  <div class="icon">?</div>
</div>
.input-icon{
  display: inline-block;
  position: relative;
}

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

.icon {
  padding: .4rem .6rem;
  display: block;
  border: 1px dashed black;
  position: absolute;
  right: 5px;
  top: 5px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.