Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <section id="calendar-2" class="widget widget_calendar">
		<div id="calendar_wrap" class="calendar_wrap">
				<table id="wp-calendar">
						<caption>
						2020年3月
						</caption>
						<thead>
								<tr>
										<th scope="col" title="月曜日">月</th>
										<th scope="col" title="火曜日">火</th>
										<th scope="col" title="水曜日">水</th>
										<th scope="col" title="木曜日">木</th>
										<th scope="col" title="金曜日">金</th>
										<th scope="col" title="土曜日">土</th>
										<th scope="col" title="日曜日">日</th>
								</tr>
						</thead>
						<tfoot>
								<tr>
										<td colspan="3" id="prev"><a href="https://tatsuya-lab.com/2020/02/">&laquo; 2月</a></td>
										<td class="pad">&nbsp;</td>
										<td colspan="3" id="next" class="pad">&nbsp;</td>
								</tr>
						</tfoot>
						<tbody>
								<tr>
										<td colspan="6" class="pad">&nbsp;</td>
										<td><a href="https://tatsuya-lab.com/2020/03/01/" aria-label="2020年3月1日 に投稿を公開">1</a></td>
								</tr>
								<tr>
										<td><a href="https://tatsuya-lab.com/2020/03/02/" aria-label="2020年3月2日 に投稿を公開">2</a></td>
										<td>3</td>
										<td><a href="https://tatsuya-lab.com/2020/03/04/" aria-label="2020年3月4日 に投稿を公開">4</a></td>
										<td>5</td>
										<td><a href="https://tatsuya-lab.com/2020/03/06/" aria-label="2020年3月6日 に投稿を公開">6</a></td>
										<td><a href="https://tatsuya-lab.com/2020/03/07/" aria-label="2020年3月7日 に投稿を公開">7</a></td>
										<td><a href="https://tatsuya-lab.com/2020/03/08/" aria-label="2020年3月8日 に投稿を公開">8</a></td>
								</tr>
								<tr>
										<td>9</td>
										<td><a href="https://tatsuya-lab.com/2020/03/10/" aria-label="2020年3月10日 に投稿を公開">10</a></td>
										<td><a href="https://tatsuya-lab.com/2020/03/11/" aria-label="2020年3月11日 に投稿を公開">11</a></td>
										<td><a href="https://tatsuya-lab.com/2020/03/12/" aria-label="2020年3月12日 に投稿を公開">12</a></td>
										<td><a href="https://tatsuya-lab.com/2020/03/13/" aria-label="2020年3月13日 に投稿を公開">13</a></td>
										<td><a href="https://tatsuya-lab.com/2020/03/14/" aria-label="2020年3月14日 に投稿を公開">14</a></td>
										<td><a href="https://tatsuya-lab.com/2020/03/15/" aria-label="2020年3月15日 に投稿を公開">15</a></td>
								</tr>
								<tr>
										<td><a href="https://tatsuya-lab.com/2020/03/16/" aria-label="2020年3月16日 に投稿を公開">16</a></td>
										<td><a href="https://tatsuya-lab.com/2020/03/17/" aria-label="2020年3月17日 に投稿を公開">17</a></td>
										<td id="today">18</td>
										<td>19</td>
										<td>20</td>
										<td>21</td>
										<td>22</td>
								</tr>
								<tr>
										<td>23</td>
										<td>24</td>
										<td>25</td>
										<td>26</td>
										<td>27</td>
										<td>28</td>
										<td>29</td>
								</tr>
								<tr>
										<td>30</td>
										<td>31</td>
										<td class="pad" colspan="5">&nbsp;</td>
								</tr>
						</tbody>
				</table>
		</div>
</section>
              
            
!

CSS

              
                #calendar_wrap{
	padding-top:10px;
}
#wp-calendar{
	width: 100%;
	font-size:12px;
	padding-top: 10px;
}
#wp-calendar tr{
	display: flex;
	justify-content: flex-start;
}
#wp-calendar tr:first-of-type{
	justify-content: flex-end;
}
#wp-calendar th,
#wp-calendar td{
	display: block;
	width: calc(100% / 7);
	text-align: center;
	margin-bottom: 10px;
}
#wp-calendar td:last-of-type,
#wp-calendar th:last-of-type{
	color: red;
}
#wp-calendar td a{
	padding: 0;
}
#wp-calendar tfoot tr{
	display: flex;
	justify-content: center;
}
#wp-calendar tfoot tr td{
	width: calc(100% / 3);
}
#wp-calendar #today a,
#wp-calendar #today{
	color: white;
	background-color:#6699ff;
	font-weight:bold;
}
              
            
!

JS

              
                
              
            
!
999px

Console