JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://wp-simplicity.com/wp-content/themes/simplicity-child-simplicity/style.css">
<div id="body-in">
<div id="sidebar">
<div id="sidebar-widget">
<div id="popular-entries" class="widget widget_category_popular widget_popular_ranking">
<h4>カテゴリー別人気記事</h4>
<!-- WordPress Popular Posts Plugin v3.3.2 [PHP] [all] [views] [custom] -->
<ul class="wpp-list">
<li>
<a href="http://wp-simplicity.com/simplicity-child-theme/" title="Simplicityの子テーマをインストールする方法" target="_self"><img src="http://wp-simplicity.com/wp-content/uploads/wordpress-popular-posts/259-featured-75x75.jpg" title="Simplicityの子テーマをインストールする方法" alt="Simplicityの子テーマをインストールする方法" class="wpp-thumbnail wpp_cached_thumb wpp_featured" height="75" width="75"></a>
<a href="http://wp-simplicity.com/simplicity-child-theme/" title="Simplicityの子テーマをインストールする方法" class="wpp-post-title" target="_self">Simplicityの子テーマをインストールする方法</a> </li>
<li>
<a href="http://wp-simplicity.com/how-to-start-adsense/" title="Simplicityテーマ内にGoogle AdSense広告を貼り付ける方法" target="_self"><img src="http://wp-simplicity.com/wp-content/uploads/wordpress-popular-posts/315-featured-75x75.jpg" title="Simplicityテーマ内にGoogle AdSense広告を貼り付ける方法" alt="Simplicityテーマ内にGoogle AdSense広告を貼り付ける方法" class="wpp-thumbnail wpp_cached_thumb wpp_featured"
height="75" width="75"></a> <a href="http://wp-simplicity.com/how-to-start-adsense/" title="Simplicityテーマ内にGoogle AdSense広告を貼り付ける方法" class="wpp-post-title" target="_self">Simplicityテーマ内にGoogle AdSense広告を貼り付ける方法</a> </li>
<li>
<a href="http://wp-simplicity.com/simplicity-and-wp-plugin/" title="SEO的にSimplicityとあわせて使いたいWordPressプラグイン" target="_self"><img src="http://wp-simplicity.com/wp-content/uploads/wordpress-popular-posts/172-featured-75x75.jpg" title="SEO的にSimplicityとあわせて使いたいWordPressプラグイン" alt="SEO的にSimplicityとあわせて使いたいWordPressプラグイン" class="wpp-thumbnail...
CSS
#sidebar .wpp-list {
padding: 4px;
}
#sidebar .wpp-list li {
list-style: none;
}
#sidebar .wpp-list {
display: flex;
flex-flow: row wrap;
}
#sidebar .wpp-list li {
padding: 4px;
flex: 1 46%;
}
/*別件*/
#sidebar .wpp-list li a:first-child {
float: left;
margin-right: 10px;
}
@media screen and (max-width: 440px) {
#sidebar .wpp-list li {
padding: 4px;
margin: 0 0 10px;
flex: none;
}
#sidebar .wpp-list li a:first-child {
float: none;
margin-right: 0;
}
#sidebar .wpp-list li a:first-child img {
width: 80%;
height: auto;
display: block;
margin: 0 auto;
}
}