我有一个需要对齐的文本旋转木马,也不确定如何激活它的子弹.
通过单击下面的演示链接,您会看到子弹点不在页面中间,并且根据名称和文本的大小,名称和项目符号之间的距离会发生变化.
我需要所有这些(文本,名称,项目符号)都在页面中间,以适应任何屏幕尺寸.
.carousel-content {
color: black;
display: flex;
align-items: center;
}
.name {
color: black;
display: block;
font-size: 20px;
text-align: center;
}
.mytext {
border-left: medium none;
font-size: 24px;
font-weight: 200;
line-height: 1.3em;
margin-bottom: 10px;
padding: 0 !important;
text-align: center;
}
.bullets li {
background: none repeat scroll 0 0 #ccc;
border: medium none;
cursor: pointer;
display: inline-block;
float: none;
height: 10px;
width: 10px;
}
.bullets li:last-child {
margin-right: 0;
}
.bullets li {
border-radius: 1000px;
} …Run Code Online (Sandbox Code Playgroud)