Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PagedList.css README reference
I don't use the full Twitter Bootstrap package. Instead, I wanted to
reference the PagedList.css file that comes in the NuGet package. I
noticed this file was omitted from the README and wanted to outline how
a user can leverage MVC4's new bundling and minification feature to
include it if they don't already use the full Bootstrap styling.
  • Loading branch information
killnine committed Sep 24, 2012
1 parent b950ae7 commit 0d8ab10
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.markdown
Expand Up @@ -128,6 +128,14 @@ The HTML output by Html.PagedListPager is configured to be styled automatically

![Out-of-the-box Pager Configurations](https://github.com/TroyGoode/PagedList/raw/master/misc/DefaultPagingControlStyles.png)

If your project does not reference the [Twitter Bootstrap](http://twitter.github.com/bootstrap) project, the NuGet package contains a stand-alone `PagedList.css`. You can reference this style sheet manually or, if using MVC4, reference within `BundleConfig.cs` and take advantage of bundling and minification automatically.

Simply append `"~/Content/PagedList.css"` to where Site.css is already bundled, yielding:

```csharp
bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css", "~/Content/PagedList.css"));
```

### Out-of-the-box Pager Configurations

```html
Expand Down

0 comments on commit 0d8ab10

Please sign in to comment.