In the end this is gonna be a simple responsive slider. problems being the li's wont stack horizontally. How can i maintain li's that are 100% width of the current window and ul's that overflow scrolls horizontally and not vertically? Is it possible to dot his only in css?
HERES A LIVE SAMPLE JSFIDDLES
html
<article id="viewport">
<ul id="slideshow">
<li class="slide">
<section id="towing">
<div class="caption">
<header>
<h1>towing service</h1>
</header>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum et nisi quam, eget cursus augue. Sed id felis non urna tristique lacinia vel quis neque. Vivamus nisl nibh, lacinia sed egestas et, euismod mollis sem. Maecenas non orci erat, a tincidunt magna.</p>
</div>
</section>
</li>
<li class="slide">
<section id="scraping">
<div class="caption">
<header>
<h1>metal scraping service</h1>
</header>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum et nisi quam, eget cursus augue. Sed id felis non urna tristique lacinia vel quis neque. Vivamus nisl nibh, lacinia sed egestas et, euismod mollis sem. Maecenas non orci erat, a tincidunt magna.</p>
</div>
</section>
</li>
<li class="slide">
<section>
<div class="caption">
<header>
<h1>trade-in service</h1>
</header>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum et nisi quam, eget cursus augue. Sed id felis non urna tristique lacinia vel quis neque. Vivamus nisl nibh, lacinia sed egestas et, euismod mollis sem. Maecenas non orci erat, a tincidunt magna.</p>
</div>
</section>
</li>
</ul>
</article>
CSS (.less symantics sorry)
div#service{
position:relative;
height:800px;
width: 100%;
background:pink;}
article#viewport{
position:relative;
height:600px;
width:100%;
top:100px;
background:@yellow;
overflow:hidden; }
ul#slideshow{
position:relative;
overflow:auto;
height:100%;
display:inline-block; }
li.slide{
position:relative;
height:600px;
width: 100%;
zoom: 1;
display:inline-block;
background:#ccc;
}
div.caption{width:300px; background:#555;text-align:right;float:right;}
</p>
Ps. Why is it when I set the .captions to position absolute; it breaks this whole interaction?