Treehouse: Grow your CSS skills. Land your dream job.

Last updated on:

Fancy Indexing

Adds fixed width fonts, file size and date, sort capability. Propagates to higher level directories. See example.

IndexOptions FancyIndexing
IndexOptions FoldersFirst
IndexOptions NameWidth=*

Reference URL

Comments

  1. Billy

    Awesome!!!

  2. Bob Jonson
    Permalink to comment#

    I want to have this be true for the root web directory, but not one of the sub directories. Is there any way I could do this?

    • Blake
      Permalink to comment#

      @Billy

      You could put this htaccess file in the root and then in the subdir’s you would put a htaccess with the below contents

      Options -Index

Leave a Comment

Posting Code

We highly encourage you to post problematic HTML/CSS/JavaScript over on CodePen and include the link in your post. It's much easier to see, understand, and help with when you do that.

Markdown is supported, so you can write inline code like `<div>this</div>` or multiline blocks of code in in triple backtick fences like this:

```
<script>
  function example() {
    element.innerHTML = "<div>code</div>";
  }
</script>
```