My bad.
The images was actually being posted but not resized, hence showing a
(white)bit of it in the white background.
After adding these: '
*background-repeat:no-repeat;background-size:contain;background-position:center;'*
The image now appears.
Regards
On Friday, December 11, 2020 at 1:24:49 PM UTC+3 Maurice Waka wrote:
> I need to add some features into the options in the view sections
> including images or videos.
>
> I did this code below but the images are not showing.
>
> <select name="second_offer" id="second_offer" class="second_offer"size="5"
> style="background-color: white;height: 160px;width: 800px;">
> <option value="1" style="widht:200px;
> height:30px;background-image:url('{{=URL('static',
> 'images/life.jpg')}}')">Boat</option>
>
> when using a web link e.g. 'https/www...link-to-image.com', this appears
> buy my images are in the static/images folder.
> Please assist.
> Regards
>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/e2310fba-0139-4a1a-8723-e8e93c6c6ae2n%40googlegroups.com.