Cory
Cory

Reputation: 161

Remove Button Padding ASP/HTML

I'm trying to get absolute 0 padding around my button.

Button

I have tried

padding:0px;

But as you can see from the image I still have space top and bottom of the button (Blue line is border). Any suggestions?

Edit: Button code:

<asp:Button ID="WPDErrorBtn" Style="font-family:'Century Gothic'; font-size:65px; background:none; padding:0px; margin:0px; border:none; " runat="server" OnClick="WPDErrorBtn_Click" OnClientClick="showLoading();" />

Upvotes: 0

Views: 565

Answers (2)

Tom B.
Tom B.

Reputation: 2962

Try to change the line-height to for example 65px; the chances are real that you have to try a smaller number.

Edit example

<button style="font-family:'Century Gothic'; font-size:65px; background:none; padding:0px; margin:0px; border:1px solid blue; line-height:50px;">0</button>

Upvotes: 1

gregos919
gregos919

Reputation: 47

What is this inside border, number or picture?
try this ---> padding:0px !important;
But i think it is not padding issue, please more details...

Upvotes: 0

Related Questions