I made this wholse website by myself to learn better and understand what i am doing. However the boxes (Box1,Box2 etc) are not aligning in right. I want that all headlines are on the same hight, can someone point me out?
使用position position:relative
,然后使用css的top
或bottom
属性,并使用-ve或+ ve值调整为相同的高度
Try this:
.box {
color: black;
margin: 2% 0 2% 0%;
padding: 0;
border: 0px solid black;
width: 33.33%;
display: inline-block;
float: left;
}
Change your width if want add more box
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.