0

I am mainly a web developer learning Java and currently, I am working on FXML.

There are a lot of possibilities in terms of positioning and styling like the panes, but since I am familiar with CSS I was wondering if it is a bad practice to do everything in CSS instead of using panes like you would in HTML.

Are there any downsides to this?

1 Answer 1

1

Check out Scenebuilder. It will autogenerate some css for you to play around with.

In general, no, it's not bad practise to use css as freely as you would in HTML. However, you do not have the flexibility of using margin-left:calc(50% - div-width/2); and similar tricks.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks that's helpful!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.