6
I have a menu listing with the following HTML:
.menu ul {
height: 115px;
width: 960x;
}
.menu li {
font: 900 22px/22px"open sans";
color: #16232e;
width: 160px;
text-align: center;
text-transform: uppercase;
margin-top: 45px;
cursor: pointer;
}
<div class="menu">
<ul>
<li>
<a href="/paginaSYS">
<h4>tituloMenuSYS</h4>
</a>
</li>
<li>
<a href="/paginaSYS">
<h4>tituloMenuSYS</h4>
</a>
</li>
<li>
<a href="/paginaSYS">
<h4>tituloMenuSYS</h4>
</a>
</li>
<li>
<a href="/paginaSYS">
<h4>tituloMenuSYS</h4>
</a>
</li>
<li>
<a href="/paginaSYS">
<h4>tituloMenuSYS</h4>
</a>
</li>
</ul>
</div>
There are six items, what the designer asked me was, when a seventh item is registered, and the user clicks the arrow down, he should show one more listing with six items (even if it will show only one). According to this image:
That is, clicked on the arrow down, it shows the next listing with six items. I tried to use the Jcaroulsellite, with the vertical, but it did not roll, is there any other solution? The effect has to be to pass from "top to bottom" and not from "left to right".
Your menu is dynamically mounted?
– Rafael Withoeft
Make the 6 items add a fixed value, for example this menu has 800px, so each button would have a width of approximately 133px, and make the forward button move the div to 800px left/right.
– Diego Vieira
Exactly, it will be manageable.
– Felipe Viero Goulart
@Felipestoker, I believe you must have N elements
UL
, each with 1 to 6LI
, by default only the first will be displayed, and the arrows will change the visibility of theUL
(paging)– Tobias Mesquita
@Tobymosque actually I will have one
UL
with Nli
s.– Felipe Viero Goulart
@Felipestoker something like that right? http://jsfiddle.net/bw48kft3/
– Diego Vieira
@Diegovieira this, in fact, the only thing different, would be the menu do the vertical effect, going from top to bottom.
– Felipe Viero Goulart
I found a solution for you, I’ll put as an answer;
– Rafael Withoeft
Then it’s easier still, I’ll send the correction.
– Diego Vieira
@Diegovieira ah, I changed to
top: "-=200"
and funfou :D– Felipe Viero Goulart
@Felipestoker just do so http://jsfiddle.net/bw48kft3/2/
– Diego Vieira