Need way to define width and height in CSS

Pedro Duque Vieira pedro.duquevieira at
Thu Dec 13 03:37:49 PST 2012

Hi Randahl, :-)

I don't mean you can't do things without this. What I meant is that it's
not the best way to do it, as well as it is not in accordance with w3c css.
And what if you wan't to define a width and a padding?

I think I also recall someone: tbee? mention something about defining width
through css, but as I remember there was no reaction. Besides creating a
new jira issue I would also like to know the reasons behind this and try to
alert the javafx community for this. It's not that big a deal, but I think
it's still a detail that would deserve some attention. IMHO JavaFX CSS as a
bunch of small details like this, that together make up a considerable

Thanks, best regards,

On Thu, Dec 13, 2012 at 7:31 AM, Randahl Fink Isaksen <randahl at>wrote:

> Hi Pedro
> I thought so too at first. But I actually managed to build a whole
> application without it. But I agree that sometimes this would be useful. I
> think you should do some Jira searches, because as I recall this has been
> suggested before, and reading what the response was will probably be
> helpful and give you an indication on whether to raise the issue again.
> Randahl
> On Dec 12, 2012, at 0:50 , Pedro Duque Vieira <pedro.duquevieira at>
> wrote:
> > Hi,
> >
> > After some practice writing  JavaFX CSS one thing as become clear: a way
> to
> > clearly define a width and a height is lacking.
> > In standard w3c css you have width and height, on JavaFX CSS you have
> > padding - look at the way the size of the mark on a checkbox is defined
> in
> > caspian. Padding isn't the nicest way to define this because it is
> supposed
> > to define the spacing between an element and it's contents.
> >
> > Cheers,
> >
> > --
> > Pedro Duque Vieira

Pedro Duque Vieira

More information about the openjfx-dev mailing list