T
T
Therapyx2015-07-27 19:53:36
css
Therapyx, 2015-07-27 19:53:36

How to remove permanent css focus on multiline textbox?

36d9060d6f2c4be6a89051a330b126e6.png
Such is the problem. After clicking on the text field, it turns green as intended, but that's when I made 1 of the "Multiline" fields. Where the date is, I pressed. Where Description is, the focus is turned on automatically...

<asp:TextBox ID="txt_Text_Custom" TextMode="MultiLine" scrollbar="false" MaxLength='100' Height="55px" runat="server" Width="95%" Text='<%# Eval("p_Text_Custom") %>'></asp:TextBox>

That CSS Focus remains always active.
input, textarea {
    background-color: #424b5f;
    color:white;
    border:0;
    background-color:white;
    color:#424b5f;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}
input:focus, textarea {
    box-shadow:0 0 10px #6dc331;
    color:#6dc331;
    background-color:white;
}

How can this problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pretor DH, 2015-07-27
@Therapyx

input, textarea {
    background-color: #424b5f;
    color:white;
    border:0;
    background-color:white;
    color:#424b5f;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}
input:focus, textarea:focus {           /*   <- Ключевое изменение :focus на textarea */
    box-shadow:0 0 10px #6dc331;
    color:#6dc331;
    background-color:white;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question