# Dash table padding

**URL:** <https://community.plotly.com/t/dash-table-padding/7077>\
**Category:** Dash Python\
**Created:** [November 29, 2017, 9:46pm UTC](https://community.plotly.com/t/dash-table-padding/7077 "2017-11-29T21:46:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackie](https://avatars.discourse-cdn.com/v4/letter/j/f07891/32.png) [@jackie](https://community.plotly.com/u/jackie)\
**Post date:** [November 29, 2017, 9:46pm UTC](https://community.plotly.com/t/dash-table-padding/7077/1 "2017-11-29T21:46:35Z")

</div>

The background of the page is a light gray while the table has a white background, but however I change the styling of the table, it appears shrink wrapped. I tried adjusting the padding, but the changes aren’t displaying. What am I missing?

```auto
 40 def generate_table(dataframe, max_rows=10):
 41 return html.Table(
 42 # Header
 43 [html.Tr([html.Th(col) for col in dataframe.columns])] +
 44 
 45 # Body
 46 [html.Tr([
 47 html.Td(dataframe.iloc[i][col]) for col in dataframe.columns
 48 ]) for i in range(min(len(dataframe), max_rows))], style={
 49 'margin-left': 'auto',
 50 'margin-right': 'auto',
 51 'padding-left': '200px',
 52 'background-color': '#ffffff'
 53 }
 54 )

```

---

<div class="post-metadata">

**Author:** ![luggie](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@luggie](https://community.plotly.com/u/luggie)\
**Post date:** [November 8, 2020, 6:16pm UTC](https://community.plotly.com/t/dash-table-padding/7077/2 "2020-11-08T18:16:35Z")

</div>

one thing would be camelCase style properties
