I want to add some content before the first input field in the following markup using the :before
. The reason of using :before is that the markup cannot be changed.
I'm trying this, but does not work:
HTML:
<p class="submit">
<input id="submit" type="submit" value="Post" name="submit">
<input id="" type="hidden" value="" name="">
</p>
CSS:
.submit input:before{
content:"Test ";
}
This would work, but I want to place the content inside .submit:
.submit:before{
content:"Test ";
}