Solved

ASP.net Button left justify text

Posted on 2014-04-14
3
390 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
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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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…

828 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