我一直在尝试使用 Python 中的 django 框架从头开始制作一个网站。我正在尝试制作一个分屏登录页面,并且在每一侧,我想要三个按钮:阅读更多、注册、登录。
我希望“注册”按钮和“登录”按钮位于较大的“阅读更多”按钮下方,但我已经好几个小时都没有成功。我是Web开发的初学者,所以请原谅我的任何愚蠢错误。
“阅读更多”和“注册”按钮的代码(到目前为止):
.button {
display: block;
position: relative;
left: 50%;
top: 40%;
height: 2.5rem;
padding-top: 1.3rem;
width: 15rem;
text-align: center;
color: #fff;
border: #fff solid 0.2rem;
font-size: 1rem;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
transform: translateX(-50%);
}
<div class="container">
<div class="split left d-flex justify-content-center align-items-center">
<h1> The Business </h1>
<a href="#" class="button"> Read More </a>
<div class="Buttons">
<div class="SignUp">
<a href="#" class="button"> Sign up </a>
</div>
</div>
</div>
<div class="split right d-flex justify-content-center align-items-center">
<h1> The Artist </h1>
<a href="#" class="button"> Read More</a>
</div>
</div>