thanks Massimo,
I think you're right to be concerned that this is the wrong approach
I wanted to add a small image, logo, just below the navbar. I was
concerned that the image might shift over on top of text on devices that I
haven't tested yet, so I thought that as background image, text that
unexpectedly shifted over it could safely be readable.
I'll study how other people handle this and try later. This is a temp fix
below but pages actually look cleaner without the image anyway.
<style>
body { background: url({{=URL('static', 'images/bulb_small.png',)}});
background-repeat: no-repeat;background-position: 8% 4%;}
</style>
thanks,
Alex
On Wednesday, September 18, 2013 3:16:46 PM UTC-7, LightDot wrote:
>
> If it's plain CSS you're interested in, you can get such information in a
> matter of seconds if you simply look it up in the docs:
>
>
> http://www.w3.org/community/webed/wiki/CSS_background_images#Positioning_the_image
>
> But I'm a bit surprised that you want to float a background. You'll need
> to find another way to achieve what ever you're trying to do...
>
> Regards
>
>
> On Wednesday, September 18, 2013 5:53:38 PM UTC+2, Alex Glaros wrote:
>>
>> you guessed correctly, Massimo, it was "body".
>>
>> How is float and width typed in? Below float/width do not work.
>>
>> <style>
>> body { background: url({{=URL('static',
>> 'images/bulb.png',)}});background-repeat: no-repeat;float:right;
>> width:10px; height:10px}
>> </style>
>>
>> thanks,
>>
>> Alex
>>
>> On Wednesday, September 18, 2013 6:20:32 AM UTC-7, Massimo Di Pierro
>> wrote:
>>>
>>> Wich background?
>>>
>>> <style>
>>> body { background: url({{=URL(....)}});}
>>> </style>
>>>
>>> On Wednesday, 18 September 2013 03:45:02 UTC-5, Alex Glaros wrote:
>>>>
>>>> What is snytax for background image?
>>>>
>>>> this example works for foreground:
>>>>
>>>> {{=IMG(_src=URL('static', 'images/bulb.png'))}}
>>>>
>>>> what is syntax for the same image, for background?
>>>>
>>>> please let me know if it needs to be surrounded by <div> or <style> or
>>>> any tags
>>>>
>>>> thanks,
>>>>
>>>> Alex Glaros
>>>>
>>>
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.