How do i change the image size? I’ve used the below line of code to insert my image but i cannot seem to figure out how you make it smaller
html.Div(html.Img(src=app.get_asset_url('logo.png')))
i’ve tried:
html.Div(html.Img(src=app.get_asset_url('logo.png')),style={'height':'10%'})
any suggestions
Move your style
attribute inside Img
:
html.Div(html.Img(src=app.get_asset_url('logo.png'), style={'height':'10%', 'width':'10%'}))
Probably width
is redundant but I'm not sure.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With