markzzz
markzzz

Reputation: 47945

Why the Button have this padding?

You can see the code of the page here.

I don't know why there is that padding with yellow background around the Button. I've also tried to put the same code on Fiddle, but seems that there isn't that padding.

Which attribute I miss?

Upvotes: 1

Views: 133

Answers (3)

Shadow Wizard
Shadow Wizard

Reputation: 66389

The containing <div> has fixed width - get rid of that and you won't have that "padding".

Upvotes: 0

Stephane Gosselin
Stephane Gosselin

Reputation: 9148

div element has a default of 5px padding if I remember correctly.

Try adding an id tag,

<div id="box">

And use this css:

#box {margin: 0; padding: 0;}

Upvotes: 1

Vincent Ramdhanie
Vincent Ramdhanie

Reputation: 103135

Your div that wraps the button has an inline style that sets the background yellow:

 <div class="categoryName4" style="background-color:#FFFF00;">

Upvotes: 2

Related Questions