Sorry for basic problem

Image, I cant see to center this image on the screen, Ive tried numerous different ways and cant seem to get this to center on the screen? Any ideas?

dbc.Row(
[

        dbc.Col(html.Img(src=app.get_asset_url('9.png'), style={
            'height': '50%', 'width': '50%',
        }, width={'offset': 10})),

Hi @bbgroup

You could try:

       dbc.Row(
            dbc.Col(
                html.Div(
                    html.Img(
                        src=app.get_asset_url("9.png"),
                        style={"height": "50%", "width": "50%"},
                    ),
                    className="text-center",
                )
            )
        ),

IT WORKED! LOOKS AWESOME! THX!

AnnMarieW
August 5

Hi @bbgroup

You could try:

       dbc.Row(
            dbc.Col(
                html.Div(
                    html.Img(
                        src=app.get_asset_url("9.png"),
                        style={"height": "50%", "width": "50%"},
                    ),
                    className="text-center",
                )
            )
        ),

1 Like