Solved

ASP.net Button left justify text

Posted on 2014-04-14
3
393 Views
Last Modified: 2014-04-14
Hi
How do I left justify the text on an ASP.net button control?
Thanks
0
Comment
Question by:murbro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Assisted Solution

by:jayakrishnabh
jayakrishnabh earned 250 total points
ID: 39998476
apply style to button as follows.
<style>
.btnstyle {
            text-align:left;
            }
</style>

<asp:Button ID="Button1" runat="server" Text="Button" CssClass="btnstyle"  />
0
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 250 total points
ID: 39998590
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style>
.btnstyle {
            text-align:left;
            }
</style>


</head>
<body>
    <form id="form1" runat="server">
    <div>
   <asp:Button ID="Button1" runat="server" Text="Button" CssClass="btnstyle"  />     </div>
    </form>
</body>
</html>
0
 

Author Closing Comment

by:murbro
ID: 39998662
Thank you both very much
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IEnumerable<T> to a List<T> 8 65
ASP.NET data base connection 35 91
CSS question 16 62
asp.net mvc5 6 32
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question