0

I know there’s some other posts out there which usually state things like ensure the parent is relative, add a z-index, etc - but none have worked. The element in question is the search button on this page:

https://notts-laod.verseonecloud.com/search

Any ideas? I just want to know where the pseudo element actually is, so I can then put a search icon over the button. Thanks for any help here. The specific code is:

.submit-wrap input {
  padding: 12px;
  border: 1px solid #7A689C;
  position: relative;
}

.submit-wrap input:after {
  position: absolute;
  padding-left: 5px;
  font-family: 'Font Awesome 5 Pro';
  content: '\f002';
  font-size: 0.75em;
  right: 0;
  top: 0;
  color: red;
  width: 100%;
  height: 100%;
  background: green;
  content: 'test';
}
<span class="submit-wrap">
<input name="search" type="submit">
</span>
Akshay
  • 14,138
  • 5
  • 46
  • 70
user8758206
  • 2,106
  • 4
  • 22
  • 45

0 Answers0