Make sure .full negative margin sticks on images wrapped in <p></p>
This commit is contained in:
@@ -9,6 +9,20 @@ 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 %}` will make sure your images display properly in feeds and such.
|
||||
|
||||
Standard image with no width modifier classes applied.
|
||||
|
||||
**HTML:**
|
||||
|
||||
```html
|
||||
{% raw %}<img src="{{ site.url }}{{ site.baseurl }}/images/filename.jpg" alt="">{% endraw %}
|
||||
```
|
||||
|
||||
**or Kramdown:**
|
||||
|
||||
```markdown
|
||||
{% raw %}{% endraw %}
|
||||
```
|
||||
|
||||

|
||||
|
||||
Image that fills page content container by adding the `.full` class with:
|
||||
@@ -16,13 +30,13 @@ Image that fills page content container by adding the `.full` class with:
|
||||
**HTML:**
|
||||
|
||||
```html
|
||||
<img src="/images/filename.jpg" alt="" class="full">
|
||||
{% raw %}<img src="{{ site.url }}{{ site.baseurl }}/images/filename.jpg" alt="" class="full">{% endraw %}
|
||||
```
|
||||
|
||||
**or Kramdown:**
|
||||
|
||||
```markdown
|
||||
{% raw %}
|
||||
{% raw %}
|
||||
{: .full}{% endraw %}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user