locked
having a small section with a background color coded and the control in it RRS feed

  • Question

  • User702049738 posted

    Hello experts;

    I have a background with the yellowish-brownish color and I want my textbox and imagebutton to be only displayed in that section. Please see my code below

    the following sample code doesn't work

    https://jsfiddle.net/kof1w16t/3/

    Thursday, March 22, 2018 7:04 PM

Answers

  • User-707554951 posted

    Hi Olybobo

    I test your code on my side, it work well.

    So, i think jsfiddle website have problem.

    <style>
            #searchstyle {
                background-color: blanchedalmond;
                height: 30px;
                left: 0;
                Top: 0;
                width: 100%;
            }
            .controlposition {
                z-index: -1;
            }
        </style>
    <div id="searchstyle">
                    <asp:TextBox ID="txt1" runat="server" CssClass="controlposition">
                    </asp:TextBox>
                    <asp:ImageButton ID="imgbtn1" runat="server" CssClass="controlposition"></asp:ImageButton>
                </div>

    Output:

    Best reagards

    Cathy

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 23, 2018 5:43 AM