Basically I want the list to have its sub-list displayed next to it, and the other list elements move aside nicely (transition) but if i set overflow it vertically aligns the sublist and if i set display: none then transitions don't work at all.
I just want the list to work like
Test Test Test
Then on hover with the first test and it pushes the last two tests aside smoothly and ends up
Test Test2 Test3 Test Test
I've tried searching and applying methods from other threads, but I can't find anything that will fit it, and work in IE nicely. I don't care for the transition to be working in IE, just that the list works.
<ul>
<li>
<a href="#">Test</a>
<ul>
<li><a href="#">Test2</a></li>
<li><a href="#">Test3</a></li>
</ul>
</li>
<li>
<a href="#">Test</a>
<ul>
<li><a href="#">Test2</a></li>
<li><a href="#">Test3</a></li>
</ul>
</li>
<li>
<a href="#">Test</a>
<ul>
<li><a href="#">Test2</a></li>
<li><a href="#">Test3</a></li>
</ul>
</li>
</ul>
* {
padding: 0;
margin: 0;
-webkit-transiton: all 0.3s;
-moz-transition: all 0.3s;
-ms-transition: all 0.3s;
-o-transition: all 0.3s;
transition: all 0.3s;
}
ul {
list-style: none;
}
ul li {
display: inline-block;
}
ul li:hover ul {
max-width: 10000px;
max-height: 10000px;
}
ul li ul {
display: inline-block;
max-width: 0px;
max-height: 0px;
padding: 0;
list-style: none;
}