# N00b question css not loading when using \_site

**URL:** <https://talk.jekyllrb.com/t/n00b-question-css-not-loading-when-using-site/3011>\
**Category:** Uncategorized\
**Created:** [June 24, 2019, 11:17pm UTC](https://talk.jekyllrb.com/t/n00b-question-css-not-loading-when-using-site/3011 "2019-06-24T23:17:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![goldstrike](https://avatars.discourse-cdn.com/v4/letter/g/a587f6/32.png) [@goldstrike](https://talk.jekyllrb.com/u/goldstrike)\
**Post date:** [June 24, 2019, 11:17pm UTC](https://talk.jekyllrb.com/t/n00b-question-css-not-loading-when-using-site/3011/1 "2019-06-24T23:17:45Z")

</div>

I want to create locally and then just upload the site directory to a webserver.  
It works fine localy, but when running in \_site directory he seems to be looking for file:///css/main.css  
so he can’t find that…

The template has this :   
and the baseurl is set to “”

How should I deal with this ? (same issue for all assets.)

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [June 25, 2019, 12:13am UTC](https://talk.jekyllrb.com/t/n00b-question-css-not-loading-when-using-site/3011/2 "2019-06-25T00:13:11Z")

</div>

sounds like you are not using a webserver - are you just using browsing the files without running a web server?

Relative urls won’t work without a web server I think.

---

<div class="post-metadata">

**Author:** ![goldstrike](https://avatars.discourse-cdn.com/v4/letter/g/a587f6/32.png) [@goldstrike](https://talk.jekyllrb.com/u/goldstrike)\
**Post date:** [June 25, 2019, 7:19am UTC](https://talk.jekyllrb.com/t/n00b-question-css-not-loading-when-using-site/3011/3 "2019-06-25T07:19:21Z")

</div>

I indeed was not using a webserver, but html with assets should be fine normally without a webserver…  
I’ll try to throw it in apache …

---

<div class="post-metadata">

**Author:** ![goldstrike](https://avatars.discourse-cdn.com/v4/letter/g/a587f6/32.png) [@goldstrike](https://talk.jekyllrb.com/u/goldstrike)\
**Post date:** [June 26, 2019, 9:21am UTC](https://talk.jekyllrb.com/t/n00b-question-css-not-loading-when-using-site/3011/4 "2019-06-26T09:21:40Z")

</div>

That was indeed the problem 🤦‍♂️
