# Css style not working in other pages

**URL:** <https://talk.jekyllrb.com/t/css-style-not-working-in-other-pages/569>\
**Category:** Help\
**Created:** [May 24, 2017, 9:02am UTC](https://talk.jekyllrb.com/t/css-style-not-working-in-other-pages/569 "2017-05-24T09:02:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![burek](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@burek](https://talk.jekyllrb.com/u/burek)\
**Post date:** [May 24, 2017, 9:02am UTC](https://talk.jekyllrb.com/t/css-style-not-working-in-other-pages/569/1 "2017-05-24T09:02:36Z")

</div>

Styles are not applied on /gallery/index

> **[piga/learnenoughcss](https://github.com/piga/learnenoughcss/tree/three-column-page-layout)**
>
> Contribute to piga/learnenoughcss development by creating an account on GitHub.

  
thanks

---

<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:** [May 24, 2017, 8:34pm UTC](https://talk.jekyllrb.com/t/css-style-not-working-in-other-pages/569/2 "2017-05-24T20:34:41Z")

</div>

how are you hosting?

usually seeing both links - repo plus live site makes it easier to troubleshoot.

---

<div class="post-metadata">

**Author:** ![burek](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@burek](https://talk.jekyllrb.com/u/burek)\
**Post date:** [May 25, 2017, 7:03am UTC](https://talk.jekyllrb.com/t/css-style-not-working-in-other-pages/569/3 "2017-05-25T07:03:25Z")

</div>

I am hosting it on c9. I don’t know how to share with you my workspace.

---

<div class="post-metadata">

**Author:** ![burek](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@burek](https://talk.jekyllrb.com/u/burek)\
**Post date:** [May 25, 2017, 7:09am UTC](https://talk.jekyllrb.com/t/css-style-not-working-in-other-pages/569/4 "2017-05-25T07:09:52Z")

</div>

I will try to host it on github pages.

---

<div class="post-metadata">

**Author:** ![burek](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@burek](https://talk.jekyllrb.com/u/burek)\
**Post date:** [May 25, 2017, 7:45am UTC](https://talk.jekyllrb.com/t/css-style-not-working-in-other-pages/569/5 "2017-05-25T07:45:29Z")

</div>

I have hosed it on  
[https://piga.github.io/](https://piga.github.io/)

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [May 25, 2017, 1:30pm UTC](https://talk.jekyllrb.com/t/css-style-not-working-in-other-pages/569/6 "2017-05-25T13:30:45Z")

</div>

It’s not a Jekyll issue. Check the paths to your CSS.

```auto
<link rel="stylesheet" href="css/reset.css" type="text/css" />
<link rel="stylesheet" href="css/main.css" type="text/css" />

```

You likely need something like this instead:

```auto
<link rel="stylesheet" href="/css/reset.css" type="text/css" />
<link rel="stylesheet" href="/css/main.css" type="text/css" />

```

It works on your homepage, but your Gallery page is in `/gallery` so it’s having trouble locating the assets. The paths you have are looking for `/gallery/css/main.css` which obviously doesn’t exist. Add the `/` before and it should resolve.

---

<div class="post-metadata">

**Author:** ![burek](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@burek](https://talk.jekyllrb.com/u/burek)\
**Post date:** [May 25, 2017, 4:47pm UTC](https://talk.jekyllrb.com/t/css-style-not-working-in-other-pages/569/7 "2017-05-25T16:47:25Z")

</div>

You are right! Thanks 🎆
