# margins for burrons not working

**URL:** <https://forum.servoy.com/t/margins-for-burrons-not-working/3837>\
**Category:** Classic Servoy\
**Created:** [March 10, 2005, 12:16pm UTC](https://forum.servoy.com/t/margins-for-burrons-not-working/3837 "2005-03-10T12:16:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmad](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@ahmad](https://forum.servoy.com/u/ahmad)\
**Post date:** [March 10, 2005, 12:16pm UTC](https://forum.servoy.com/t/margins-for-burrons-not-working/3837/1 "2005-03-10T12:16:14Z")

</div>

Hi,

When I set margins for a buttons through styles it’s not working

The other property like color is working

```auto
button.listtitle
{
	color: #000000;
	border-style: none; 
	font: bold 12pt "Arial, Helvetica, sans-serif"; 
	margin: 5px 5px 5px 5px;
}

```

When I removed the method from the button it then behaves like a label which is fine. I then created a same style in label as

```auto
label.listtitle
{
	color: #000000;
	border-style: none; 
	font: bold 12pt "Arial, Helvetica, sans-serif"; 
	margin: 5px 5px 5px 5px;
}

```

it shows the label with margin.

I remember it worked previously. Now all my buttons dont have any margin when I set through styles..

Thanks for your help

---

<div class="post-metadata">

**Author:** ![maarten](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@maarten](https://forum.servoy.com/u/maarten)\
**Post date:** [March 17, 2005, 10:46am UTC](https://forum.servoy.com/t/margins-for-burrons-not-working/3837/2 "2005-03-17T10:46:03Z")

</div>

I copy pasted your listtitle setting and it works ok. (2.2rc3)  
Did you check if the margin property of the button element itself is set ot DEFAULT ?  
What OS system are you using?  
What Look and Feel are you using?  
Do you experience same when setting to another L&F?  
What’s the exact size of your button?
