页面的位置portfolio
很好,但我认为我没有正确使用礼节margin-left
,我认为我必须使用另一个礼节?
然后,我的第二个问题是我的languages
页面离我的页面太远portfolio
,我想修复为50 px
. 但我不能这样做,因为我遇到了第一个问题。
谢谢你的帮助。
body{
margin: 0px;
padding: 0px;
}
header{
background-color: #B1DBE8;
height: 98px;
}
.header-block{
font-size: 11px;
text-transform: uppercase;
padding-top: 8px;
font-weight: 700;
color: #777;
line-height: 20px;
}
.page-left{
display: inline-block;
margin-left: 430px;
}
<body>
<header>
<div class="header-block">
<div class="page-left">Portfolio</div>
<div class="page-left">Languages</div>
</div>
</header>
</body>