# Rendering custom html table

**URL:** <https://discuss.streamlit.io/t/rendering-custom-html-table/28842>\
**Category:** Custom Components\
**Tags:** css\
**Created:** [August 7, 2022, 7:12pm UTC](https://discuss.streamlit.io/t/rendering-custom-html-table/28842 "2022-08-07T19:12:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bismo](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@bismo](https://discuss.streamlit.io/u/bismo)\
**Post date:** [September 3, 2022, 5:41pm UTC](https://discuss.streamlit.io/t/rendering-custom-html-table/28842/3 "2022-09-03T17:41:41Z")

</div>

Hi @Caroline, I finally finished my app and deployed it, but the css isn’t rendering, even when referencing it correctly. How can I make CSS from a file render in a deployed app?

I am trying to render custom css in a deployed streamlit app. I have created a custom html table and am displaying it with `components.html()` ([API reference here](https://docs.streamlit.io/library/components/components-api)).

The thing is, I can get this css to render locally when in development by putting my css file in streamlit’s `static` folder on my computer and referencing it like so in my custom table html:

```auto
<link rel=“stylesheet” href=table_style.css” type=“text/css”/>

```

And it works just fine. I have finished my app and deployed it, changing the href to where the css file lives in my streamlit app’s repo:

```auto
<link rel=“stylesheet” href=assets/css/table_style.css” type=“text/css”/>

```

but no css was rendered. I also tried

```auto
main/assets/css/table_style.css

```

and then tried the full path

```auto
_user_/_repo_/main/assets/css/table_style.css

```

and using the raw link to the css file itself

```auto
https://raw.githubusercontent.com/_user_/_repo_/main/assets/css/table_style.css

```

yet the css doesn’t render when deployed with any of these attempts. There has to be a way to get this css referenced when in production… [here is an example](https://discuss.streamlit.io/t/components-html-use-own-css/13284) of someone with a very similar problem but not a very straightforward answer. I’ve tried every option I could think of in trying to get my custom css rendered when deployed but nothing seems to work. Help would be greatly appreciated, as I spent a lot of time working on and designing my app around this css, and it would basically be useless if it can’t be rendered in deployment (which I don’t know why it wouldn’t be able to). Thanks!

---

_[View the full topic](https://discuss.streamlit.io/t/rendering-custom-html-table/28842)._
