css margin

Pedro Duque Vieira pedro.duquevieira at gmail.com
Mon Aug 4 21:18:11 UTC 2014


I should add that margins are often used in web design to make up the space
between elements. I've also find myself wanting to add margins to nodes in
javafx but not found any good way of doing it, since this property does not
exist.

Thanks,


On Mon, Aug 4, 2014 at 10:15 PM, Pedro Duque Vieira <
pedro.duquevieira at gmail.com> wrote:

> Hi David,
>
> No, padding and margin and two distinct concepts.
>
> Padding is the white space between the node and it's contents, whereas
> margin is the white space between the node and the other things around the
> node that are not part of the node.
>
> Here's a link: http://www.w3schools.com/css/css_boxmodel.asp
>
> Thanks, best regards,
>
>
>
>
> I think you are looking for the padding property of Region.
>>
>> On 8/3/14, 6:07 PM, Pedro Duque Vieira wrote:
>> > Hi,
>> >
>> > I miss having a way to define a margin in css or in any other way like
>> with
>> > java code. That is the rectangular white space between a node and the
>> rest,
>> > like w3c css margin property.
>> >
>> > Is this planned?
>> >
>> > Thanks,
>> >
>>
> --
> Pedro Duque Vieira
>



-- 
Pedro Duque Vieira


More information about the openjfx-dev mailing list