html使两个按钮重叠,div按钮重叠HTML

我正在尝试为自己创建一个在线投资组合,我有一个底部容器用于屏幕的下半部分,我想在容器的顶部放置3个按钮。除非你调整页面大小,否则我可以使用它。缩小页面宽度时,按钮将重叠。如何阻止它们重叠?我希望他们并排靠近但不重叠。





h1 {

margin-left: 33%;

margin-right: 33%;

text-align: center;

}

img {

width: 15%;

height: auto;

display: block;

margin-left: auto;

margin-right: auto;

}

#top,

#bottom {

position: fixed;

left: 0;

right: 0;

height: 50%;

}

#bottom {

border-top: 2px solid black;

margin-left: auto;

margin-right: auto;

display: block;

float: center;

position: fixed;

border: 2px solid black;

padding: 15px;

padding-bottom: 17px;

}

#navbuttons {

border-top: 2px solid black;

margin-left: auto;

margin-right: auto;

display: block;

float: center;

position: relative;

border: 2px solid black;

padding: 15px;

padding-bottom: 10px;

}

#resumebutton {

display: inline-block;

position: absolute;

top: 0%;

left: 33%;

-moz-border-radius: 20px;

-webkit-border-radius: 20px;

border: 2px solid black;

border-radius: 20px;

padding: 5px;

background-color: #7dd7f5;

text-align: center;

}

#coverletterbutton {

display: inline-block;

position: absolute;

top: 0%;

left: 46.5%;

-moz-border-radius: 20px;

-webkit-border-radius: 20px;

border: 2px solid black;

border-radius: 20px;

padding: 5px;

background-color: #7dd7f5;

text-align: center;

}

#portfoliobutton {

display: inline-block;

position: absolute;

top: 0%;

left: 62.5%;

-moz-border-radius: 20px;

-webkit-border-radius: 20px;

border: 2px solid black;

border-radius: 20px;

padding: 5px;

background-color: #7dd7f5;

text-align: center;

}

--Name Here-- Resume and Portfolio

--Name Here--

cat-pictures-20.jpg

Resume and Portfolio





如果我知道如何,我会提供一个例子。

谢谢

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值