Solved

ASP.net Button left justify text

Posted on 2014-04-14
3
387 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

773 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