Browse Source

docs : revise Layout Modes demo / example links. Add h3 ids

pull/14/head
David DeSandro 14 years ago
parent
commit
c5e02d93ce
  1. 8
      _posts/docs/2010-12-03-options.mdown
  2. 32
      _posts/docs/2010-12-05-layout-modes.mdown

8
_posts/docs/2010-12-03-options.mdown

@ -145,7 +145,7 @@ Restricts Isotope item elements to selector.
See also docs on [Layout Modes](layout-modes.html).
[**See Example: Layout Modes**](../demos/layout-modes.html)
[**See Demo: Layout Modes**](../demos/layout-modes.html)
## resizeable
@ -192,7 +192,7 @@ The style applied to item elements made visible by Filtering.
In addition the general options listed above, certain layout modes each have their own options. In order to avoid conflict, these options are set with an option that matches the name of the layout mode.
See [Layouts](layouts.html) for each layout mode's available options.
See [Layout modes](layout-modes.html) for each layout mode's available options.
For example, if your layout switched from `masonry` to `cellsByRow`:
@ -208,4 +208,6 @@ $('#container').isotope({
}
});
{% endhighlight %}
{% endhighlight %}
[**See Demo: Layout Modes**](../demos/layout-modes.html)

32
_posts/docs/2010-12-05-layout-modes.mdown

@ -9,7 +9,7 @@ body_class: option-def
Isotope has a versatile layout engine that can accommodate multiple layout modes. You can set and change the layout mode via the `layoutMode` option.
[**See Example: Layout Modes**](../demos/layout-modes.html)
[**See Demo: Layout Modes**](../demos/layout-modes.html)
### Example
@ -25,7 +25,7 @@ Six layout modes are built into Isotope.
masonry is the default layout mode for Isotope. Item elements are arranged intelligently within a grid. For each item element, the script calculates the next best fit for the item within the grid.
### Options
### Options {#masonry-options}
<dl class="clearfix">
<dt><code>columnWidth</code></dt>
@ -34,7 +34,7 @@ masonry is the default layout mode for Isotope. Item elements are arranged intel
The width of one column in the grid. If no value is set for `columnWidth`, default is the width of the first item element.
### Example
### Example {#masonry-example}
{% highlight javascript %}
@ -54,7 +54,7 @@ Item elements are arranged into rows. Similar to what you would expect from a la
A grid layout. The grid is defined by two options, `columnWidth` and `rowHeight`.
### Options
### Options {#cellsByRow-options}
<dl class="clearfix">
<dt><code>columnWidth</code></dt>
@ -65,7 +65,7 @@ A grid layout. The grid is defined by two options, `columnWidth` and `rowHeight`
<dd class="option-type">Integer</dd>
</dl>
### Example
### Example {#cellsByRow-example}
{% highlight javascript %}
@ -83,7 +83,7 @@ $('#container').isotope({
The horizontal equivalent of masonry layout. Instead of progressing top-to-bottom, masonryHorizontal layout will progress left-to-right. Item elements are arranged intelligently within a grid. For each item element, the script calculates the next best fit for the item within the grid.
### Options
### Options {#masonryHorizontal-options}
<dl class="clearfix">
<dt><code>rowHeight</code></dt>
@ -92,7 +92,7 @@ The horizontal equivalent of masonry layout. Instead of progressing top-to-botto
The width of one column in the grid. If no value is set for `rowHeight`, default is the height of the first item element.
### Example
### Example {#masonryHorizontal-example}
{% highlight javascript %}
@ -112,7 +112,7 @@ Item elements are arranged into columns. The horizontal equivalent of fitRows. C
A grid layout. The grid is defined by two options, `columnWidth` and `rowHeight`. The horizontal equivalent of cellsByRow.
### Options
### Options {#cellsByColumn-options}
<dl class="clearfix">
<dt><code>columnWidth</code></dt>
@ -123,7 +123,7 @@ A grid layout. The grid is defined by two options, `columnWidth` and `rowHeight`
<dd class="option-type">Integer</dd>
</dl>
### Example
### Example {#cellsByColumn-example}
{% highlight javascript %}
@ -136,3 +136,17 @@ $('#container').isotope({
});
{% endhighlight %}
## Horizontal layouts
Horizontal layout modes (masonryHorizontal, fitColumns, and cellsByColumn) need a container that has a height value. Be sure that your CSS has height set.
{% highlight css %}
#container {
/* either of these will work for horizontal Isotope layouts */
height: 80%;
height: 480px;
}
{% endhighlight %}
Loading…
Cancel
Save