TRIM THE BUTTON WIDTH TO BUTTON TEXT THROUGH CSS



Programming Help Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



TRIM THE BUTTON WIDTH TO BUTTON TEXT THROUGH... Expand / Collapse
Author
Message
Posted 3/2/2007 9:16:34 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/2/2007 9:11:00 AM
Posts: 1, Visits: 1
While applying the CSS for button in ASP.Net. I have a problem in button width.

Text in the button always showing with Padding.

I dont want padding in the button.

Here is the CSS for button.

.Button,.CommandButton

{

padding: 0 0 0 0;

margin: 0px auto;

text-align: center;

text-decoration: none;

border-style:none;

border-right: #4e5e7d 2px inset;

border-top: #4e5e7d 2px solid;

font-weight: bold;

font-size: 11px;

border-left: #4e5e7d 2px solid;

color: White;

border-bottom: #4e5e7d 2px inset;

font-family: verdana;

background-color: #4e5e7d;

}

Please help me for this.

Advance Thanks



Regards,
Ayyanar. J
Senior Software Engineer
Avinaya Information Systems
Post #436
Posted 8/5/2008 8:44:22 AM
Admin

AdminAdminAdminAdminAdminAdminAdminAdmin

Group: Administrators
Last Login: 4/27/2009 7:34:30 AM
Posts: 46, Visits: 52
I would try margin: 0px; without the auto because that will force the margin to be 0px.
Post #1828
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: ProgrammingHelp, Viral Unity, Matt.Hill, DaveL, Alex.D

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 8:21am

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.203. 9 queries. Compression Disabled.