When you store the css code in a view e.g. css.html and include it in a view you can do:
background-image: url('{{=URL('static','images/headerback.jpg')}}'); An other option is the following: <div class="header" style="background-image: url('{{=URL('static','images/headerback.jpg')}}'); background-repeat: no-repeat; background-size: cover; background-position: center center;"> <div class="overlay"> </div> </div> Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/9fb4f90e-f147-45f3-b1de-4cc3f9093f69%40googlegroups.com.