1
ul.ulVertical {
border: .1px rgb(0, 0, 0) solid;
list-style: none;
width: 800px;
height: 100px;
}
ul.ulVertical li {
display: inline-block;
width: 100px;
height: 30px;
text-align: center;
border-top: .1px rgb(0, 0, 0) solid;
transform: rotate(270deg);
transform-origin: top right;
}
ul.ulVertical li:last-chield {
border: none;
}
<ul class="ulVertical">
<li>Passo 1</li>
<li>Passo 2</li>
<li>Passo 3</li>
<li>Passo 4</li>
<li>Passo 5</li>
<li>Passo 6</li>
<li>Passo 7</li>
<li>Passo 8</li>
<li>Passo 9</li>
<li>Passo 10</li>
<li>Passo 11</li>
<li>Passo 12</li>
<li>Passo 13</li>
</ul>
That code works.
But due to width in horizontal of li
be of 100px
, this leads to a distance between the li's
of a size equal to its horizontal width.
What I need?
Find a way to bring the li's
of a form that there is no space between them when they are in vertical.
It’s not very clear what you want.
– Caio de Paula Silva
Couldn’t remove the width? The problem is that the UL is 800px wide and each LI is 100px, and since it is 13 LI’s, it will exceed the width of the UL.
– Sam
well, this 100px da li is so that the li’s have the high compatible with the UL. Otherwise, the LI will become small inside the UL. Some recourse to this?
– Carlos Rocha