Skip to content

Commit

Permalink
added syntax highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
davatron5000 committed Sep 2, 2011
1 parent 45e76ff commit 553df69
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ FitVids automates [the Intrinsic Ratio Method by Thierry Koblentz](http://www.al
# How Do I Use It?
Include jQuery and FitVids.js in your layout and target your videos container with `fitVids()`.

<script src="path/to/jquery.min.js"></script>
<script src="path/to/jquery.fitvids.js"></script>
<script>
$(document).ready(function(){
// Target your .container, .wrapper, .post, etc.
$("#thing-with-videos").fitVids();
});
</script>
```javascript
<script src="path/to/jquery.min.js"></script>
<script src="path/to/jquery.fitvids.js"></script>
<script>
$(document).ready(function(){
// Target your .container, .wrapper, .post, etc.
$("#thing-with-videos").fitVids();
});
</script>
```

This will wrap each video in a `div.fluid-width-video-wrapper` and apply the necessary CSS. After the initial Javascript call, it's all percentage-based CSS magic.

Expand Down

0 comments on commit 553df69

Please sign in to comment.