html - Jade template engine / How to set a background image -


i set background-image html page rendered jade. know how achieve this?

thanks

the background image set in css of page. , has nothing jade.

so, in page css:

body {     background-image: url(/images/img1.jpg); } 

or using class assign 1 of elements in jade template:

.bkimg {     background-image: url(/images/img1.jpg); } 

and jade:

body.bkimg     p fine body 

the same applies element type.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -