ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Put image icon inside TextBox using CSS<p>Hi <a class="username" rel="micah"> micah</a>,</p> <p>Refer the below sample. You can use background image to display the image inside the textbox or simply apply the css to display an image inside the textbox.</p> <p><span style="text-decoration: underline;">HTML</span></p> <div class="demo_block"> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head runat=&#34;server&#34;&gt; &lt;title&gt;&lt;/title&gt; &lt;style type=&#34;text/css&#34;&gt; .dvImageTextBox { position: relative; width: 240px; } .dvImageTextBox input { border: none: background:#fff; display: block; width: 100%; box-sizing: border-box; } .dvImageTextBox img { position: absolute; top: 2px; right: 5px; } .inputImage { background: #FFFFFF url(&#39;http://icons.iconarchive.com/icons/gakuseisean/ivista-2/16/Start-Menu-Search-icon.png&#39;) no-repeat top right; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div class=&#34;dvImageTextBox&#34;&gt; &lt;input name=&#34;TextBox1&#34; type=&#34;text&#34; id=&#34;TextBox1&#34; /&gt; &lt;img src=&#34;http://icons.iconarchive.com/icons/gakuseisean/ivista-2/16/Start-Menu-Search-icon.png&#34; height=&#34;17px&#34; width=&#34;25px&#34; /&gt; &lt;/div&gt; &lt;input type=&#34;text&#34; id=&#34;name&#34; class=&#34;inputImage&#34; /&gt; &lt;/body&gt; &lt;/html&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/175550/Put-image-icon-inside-TextBox-using-CSS/https://www.aspforums.net:443/Threads/175550/Put-image-icon-inside-TextBox-using-CSS/Wed, 20 Dec 2017 23:19:02 GMT