Using Bootstrap's Grid System in Distill Article

I am building my first website using Distill, and I am wanting to place text and a figure side by side in a distill article. I am familiar with using rows and columns using the grid system. For example:

<div class="row">
<div class="medium-5 columns" >
insert image here
</div>
<div class="medium-7 columns">
insert text here
</div>
</div>

However, this doesn't seem to work in a distill article. Is there a way to line up an image and text side by side? I do not want to float it.

2 Likes

I was able to figure this out. I added the following css style to my theme.css

.wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(100px, auto);
}

This particular css style splits the available space into 2 equal columns and makes rows a minimum of 100px tall, but they can get larger if the content needs the space. Here is a good resource

Once you have this you can work with div to get them in columns and rows.

Example:

<div class="wrapper">
<div>
Content
</div>
<div>
Content 
</div>
</div>
3 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.