Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Columns wont work

$
0
0

I have a problem with getting the layout of my dashboard to work.

When I try to run this code:
import dash
from dash import dcc
from dash import html
from dash.dependencies import Input, Output

import dash_bootstrap_components as dbc

app = dash.Dash(__name__)

app.layout = html.Div([
    dbc.Row(
            [
                dbc.Col(html.Div("One of three columns")),
                dbc.Col(html.Div("One of three columns")),
                dbc.Col(html.Div("One of three columns")),
            ]
        )
])

if __name__ == '__main__':
    app.run_server()

the one of three columns just get put under each other instead of next to eachother.
I also tried using a different browers and tried using className in de html.DIv but it all wont work.

this is wat the code in my browser says.

Dash
Loading…

not really good in html or anything, so dont know if it will help

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles