I recently added a plug-in called Display-listings-shortcode and incorporated the columns-extension feature on my website, RitaNaomi.com. This allows for blog posts to be displayed in columns halfway down the homepage when viewed on a web browser. Initially, the display appeared somewhat messy with titles appearing cramped beside and below images. However, after some tinkering, I managed to adjust the .display-posts-listing class to modify the layout.
.display-posts-listing .listing-item {padding-bottom:30;}
.listing-item
{
float:left;
width:22%;
margin: 40px
}
However, upon viewing the site on a mobile device, the columns remained horizontal rather than stacking vertically as desired. Despite attempting to use @media queries to alter this through CSS, the changes did not take effect.
I attempted to rectify this issue by using the following code within an @media handheld statement:
.display-posts-listing .listing-item {
clear: both;
display: block;
}
.display-posts-listing img {
float: left;
margin: 0 10px 10px 0;
}
}