[web2py] Re: Using static files in view confusion

2012-04-20 Thread Simon Pickles
Thanks I suspected my path was a little wrong. Still got the problem that the image border appears then whole thing vanishes. On Friday, 20 April 2012 08:19:23 UTC+1, Simon Pickles wrote: Hi, New to web2py and having trouble with simple HTML in a view. In my default/index.html:

Re: [web2py] Re: Using static files in view confusion

2012-04-20 Thread Jonathan Lundell
On Apr 20, 2012, at 6:24 AM, Simon Pickles wrote: Thanks I suspected my path was a little wrong. Still got the problem that the image border appears then whole thing vanishes. Assuming that your app is set as the default, try: img src=/static/images/map420x200.png style=border: 2px;

[web2py] Re: Using static files in view confusion

2012-04-20 Thread pbreit
Even when using img tag, best to use URL() function for the src url.

Re: [web2py] Re: Using static files in view confusion

2012-04-20 Thread Simon Pickles
Thanks Nice to see web2py has a helpful and lively community On Apr 20, 2012 2:24 PM, Simon Pickles sipick...@gmail.com wrote: Thanks I suspected my path was a little wrong. Still got the problem that the image border appears then whole thing vanishes. On Friday, 20 April 2012 08:19:23