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


    Thursday, March 22, 2018 7:04 PM


  • User-707554951 posted

    Hi Olybobo

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

    So, i think jsfiddle website have problem.

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


    Best reagards


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