Learn how to style a header.
<div class="header">
<h1>Header</h1>
<p>My supercool header</p>
</div>
Style the header with a large padding, centered text, a specific background-color and a big sized text:
.header {
padding: 60px;
text-align: center;
background: #1abc9c;
color: white;
font-size: 30px;
}
Try it Yourself »
Ever heard about 91xjr Spaces? Here you can create your website from scratch or use a template, and host it for free.
Get started for free ❯* no credit card required
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!