Looking for help with aligning posts in columns? Here's the code and display challenge:
<div class="post-inner"> <h3 class="post-header"><a class="post-title" href="http://www.yellowfishjobs.com/job/sales-representative/">Sales Representative</a></h3>
<p class="post-excerpt"></p><h4>Location: Belfast</h4>
<h4>Job Type: Full-time</h4>
<p> <a href="http://www.yellowfishjobs.com/job/sales-representative/#more-2222" class="more-link">(more…)</a></p>
</div>
The current display looks like this:
Sales Representative
Location: Belfast
Job Type: Full-time
(more…)
Desired display to align in columns:
Sales Representative Location: Belfast Job Type: Full-time (more…)
A CSS attempt using grid layout:
.listing_page .post-inner {
display:grid;
grid-template-columns: 300px 50px 50px 50px;
grid-template-rows: 100px ;
}
.listing_page .post-inner h3 {grid-column-start: 1;
grid-column-end: 1;
grid-row-start: row1-start
grid-row-end: 1}
.listing_page .post-inner h4:nth-child(1) {grid-column-start: 2;
grid-column-end: 1;
grid-row-start: row1-start
grid-row-end: 1}
.listing_page .post-inner h4:nth-child(2) {grid-column-start: 3;
grid-column-end: 1;
grid-row-start: row1-start
grid-row-end: 1}
.listing_page .post-inner p {grid-column-start: 4;
grid-column-end: 1;
grid-row-start: row1-start
grid-row-end: 1}
If you can provide assistance on why it's not working without changing HTML, I would greatly appreciate it. Thank you!