Search code examples
springvaadinvaadin-spring-boot

Set background image without css


I'm looking for a solution to set up background image without CSS knowledge and addition of css files. At this point, I rely on mighty powers of Vaadin. Obviously, the solution posted here is not appropriate for me, since I use a built-in ValoTheme and I highly want to follow my principles (use only one styling).

Is it possible to do that without CSS?


Solution

  • You can set the background attribute in the body like so:

    <body background='path/to/image/file.png'>
    

    Here's the link to the W3 Schools site for reference: W3 Schools - Body Background Attribute