Add content to text input

Discussion in 'HTML & Website Design' started by makamo66, Jun 6, 2016.

  1. #1
    <input type="email" size="61" class="focus">

    .focus {border: 1px solid red;outline: none;}

    .focus:before{
    content: "X";
    position: relative;
    top: -24px;
    left: 500px;
    color: red;
    }

    How can I get the X mark to show up in the text box?
     
    makamo66, Jun 6, 2016 IP
  2. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #2
    hdewantara, Jun 6, 2016 IP
  3. Rob Whisonant

    Rob Whisonant Well-Known Member

    Messages:
    156
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    110
    #3
    <input type="email" size="61" class="focus" value="X">
     
    Rob Whisonant, Jun 6, 2016 IP