Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Post in container but images full-width throughout the page

Started by Muut Archive 10 years ago · 0 replies · 552 views
10 years ago

Hello!

How can I achieve having Medium like style where I have my content in one column that is around 700px wide but every image I add to the post will be full-width from edge to edge of the browser window?
The most simple solution I see here is to get rid of theme's post/page layout part where it specify a class (like post-content etc) and include the class directly in Markdown. so I can have something like this:

HTML
<div class="post content">
Hello
Hello, it's me
Hello from the outside 
</div>
// include full-with image
<div class="full-image">
<img>   
</div>
// continue post
<div class="post content">
I must've called a thousand times...
</div>

The bottleneck here is I need to include these classes every time I write article so it might slow down my work.
Any other solutions?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2600 9 years ago
Archive · by Muut Archive, 9 years ago
2 1710 9 years ago
Archive · by Muut Archive, 9 years ago
2 5003 9 years ago
Archive · by Muut Archive, 9 years ago
1 3835 9 years ago
Archive · by Muut Archive, 9 years ago
3 1817 9 years ago