I'm using Jquery steps with bootstrap. I've created custom css to style steps list.
My css is
.steps li {
padding: 7px 4px 10px;
margin-right: 5px;
background: #dedede;
position: relative;
display: inline-block;
}
.steps li:before {
width: 0;
height: 0;
border-top: 17px inset transparent;
border-bottom: 20px inset transparent;
border-left: 20px solid #fff;
position: absolute;
content: "";
top: 0;
left: 0;
}
.steps li:after {
width: 0;
height: 0;
border-top: 18px inset transparent;
border-bottom: 17px inset transparent;
border-left: 20px solid #dedede;
position: absolute;
content: "";
top: 0;
right: -20px;
z-index: 2;
}
.steps .badge {
margin: 0 2px 0 19px;
position: relative;
top: -1px;
}
and, my part of steps list,
1)
<p>Correct</p>
<div class="steps">
<ul>
<li role="tab" class="disabled" aria-disabled="true">
<a aria-controls="wizard-p-2" href="#wizard-h-2" id="wizard-t-2">
<span class="badge">3</span> Review Contributors
</a>
</li>
</ul>
</div>
2)
<p>Wrong</p>
<div class="steps">
<ul>
<li role="tab" class="disabled" aria-disabled="true">
<a aria-controls="wizard-p-2" href="#wizard-h-2" id="wizard-t-2">
<span class="badge">3</span> Review<br/> Contributors
</a>
</li>
</ul>
</div>
Here, the first one works fine. But the second one breaks the styling due to the <br/>
in Review<br/> Contributors
. Please see my Fiddle. What I'm trying to do is, if the text length is too long, I want to break the text with the same styling. How to do that? I've tried with display:table
properties. But it doesn't work.
I've used <br/>
to reduce the size. But I need the result as same as 1). Do I need to use any other instead of <br/>
`. But I need the result as same as 1) – Linga Aug 20 '14 at 05:44