我无法制作5列和流体宽度/高度的垂直条。我想要的是当页面缩小高度增长时,每列中的文本仍在栏中。流体宽度和高度的色谱柱
这是我应该是什么样子和我有什么:
现在,如果我的屏幕变小文来到酒吧外和那不是我想要的。另外我无法获得相同的列宽。有5列应该等于100%宽度,但每个20%都不起作用。
HTML:
<div id="wizard-steps">
<div class="wizard-header float-left">Kaderings analyseaanvraag</div>
<div class="wizard-header float-left">Specificaties analyses : Type staal/stalen</div>
<div class="wizard-header float-left">Specificaties analyses : Te bepalen componenten</div>
<div class="wizard-header float-left">Specificaties analyses : Tijdschema en aantal stalen</div>
<div class="wizard-header float-left">Data-analyse</div>
</div>
CSS:
#wizard-steps {
border-radius: 3px;
border: 2px solid #a2c61c;
width: 100%;
height: 20px;
margin: 0 auto;
position: relative;
}
#wizard-steps div {
border-right: 2px solid #a2c61c;
width: 19%;
height: 20px;
text-align: center;
cursor: pointer;
float: left;
}
#wizard-steps div:last-child {
border: white;
}
.active-step {
background-color: #a2c61c;
color: white;
}
任何帮助,将不胜感激!
修订版CSS:(THX红光满面&豹)
#wizard-steps {
border-radius: 3px;
border: 2px solid #a2c61c;
width: 100%;
display: table;
}
#wizard-steps div {
border-right: 2px solid #a2c61c;
width: 19%;
text-align: center;
cursor: pointer;
display: table-cell;
}
#wizard-steps div:last-child {
border: white;
}
.active-step {
background-color: #a2c61c;
color: white;
}
它得到我:
固定的任何机会当它增长时,积极的背景应该会增长吗?由于19%,我也有一个右栏。
这样的事情? [演示](HTTP://的jsfiddle。net/e63bhd5c /) – Ruddy 2015-01-21 08:50:58
这正是我想要的@Ruddy – 2015-01-21 08:56:37