Set background image without css

Malakai picture Malakai · Jan 5, 2017 · Viewed 22.3k times · Source

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?

Answer

SteveK picture SteveK · Jan 5, 2017

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