Add .full image class for spanning the entire content container
This commit is contained in:
@ -9,4 +9,22 @@ tags:
|
||||
|
||||
The preferred way of using images is placing them in the `/images/` directory and referencing them with an absolute path. Prepending the filename with `{% raw %}{{ site.url }}{{ site.baseurl }}/images/{% endraw %}` well make sure your images display properly in feeds and such.
|
||||
|
||||

|
||||

|
||||
|
||||
Image that fills page content container by adding the `.full` class with:
|
||||
|
||||
**HTML:**
|
||||
|
||||
```html
|
||||
<img src="/images/filename.jpg" alt="" class="full">
|
||||
```
|
||||
|
||||
**or Kramdown:**
|
||||
|
||||
```markdown
|
||||
{% raw %}
|
||||
{: .full}{% endraw %}
|
||||
```
|
||||
|
||||

|
||||
{: .full}
|
@ -86,6 +86,6 @@ And place it like so:
|
||||
|
||||
{% include gallery id="gallery2" caption="This is a second gallery example with images hosted externally." %}
|
||||
|
||||
And for giggles one more gallery just to make sure this works.
|
||||
And for giggles one more gallery just to make sure this works. To fill page content container add `class="full"`.
|
||||
|
||||
{% include gallery id="gallery3" caption="This is a third gallery example with two images." %}
|
||||
{% include gallery id="gallery3" class="full" caption="This is a third gallery example with two images and fills the entire content container." %}
|
Reference in New Issue
Block a user