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.Right align text in TextBox with symbols at the end in CSS<p>Hi <a class="username" rel="Rockstar8">Rockstar8</a>,</p> <p>Refer below sample code.</p> <p><strong><span style="text-decoration: underline;">HTML</span></strong></p> <div class="demo_block"> <pre class="brush: html">&lt;style type=&#34;text/css&#34;&gt; td { position: relative; } input { padding-right: 60px; text-align: right; } span { position: absolute; right: 5px; } &lt;/style&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.2.6/jquery.inputmask.bundle.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(document).ready(function () { $(&#34;.custom2&#34;).inputmask({ &#39;alias&#39;: &#39;decimal&#39;, rightAlign: false, &#39;groupSeparator&#39;: &#39;.&#39;, &#39;autoGroup&#39;: true }); }); &lt;/script&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt; &lt;input type=&#34;text&#34; id=&#34;country&#34; class=&#34;custom2&#34; /&gt;&lt;span&gt;Country&lt;/span&gt; &lt;/td&gt; &lt;td&gt; &lt;input type=&#34;text&#34; id=&#34;city&#34; class=&#34;custom2&#34; /&gt;&lt;span&gt;City&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/204212/Right-align-text-in-TextBox-with-symbols-at-the-end-in-CSS/https://www.aspforums.net:443/Threads/204212/Right-align-text-in-TextBox-with-symbols-at-the-end-in-CSS/Tue, 23 Oct 2018 02:53:15 GMT