Formatting jquery timeline?
Posted
by
Beginner
on Stack Overflow
See other posts from Stack Overflow
or by Beginner
Published on 2012-03-20T09:53:38Z
Indexed on
2012/03/20
11:29 UTC
Read the original article
Hit count: 325
I am using a timeline plugin from here
This is my current code:
<ul id="dates">
<li><a href="#1940s">1940s</a></li>
<li><a href="#1950s" class="selected">1950s</a></li>
<li><a href="#1960s">1960s</a></li>
<li><a href="#1970s">1970s</a></li>
<li><a href="#1980s">1980s</a></li>
<li><a href="#1990s">1990s</a></li>
<li><a href="#2000s">2000s</a></li>
</ul>
<ul id="issues">
<li id="1940s"><img src="/gfx/timeline/1950.jpg" />
<h1>1940's</h1>
<p>Ronald.</p>
</li>
<li id="1950s"><img src="/gfx/timeline/1960.jpg" />
<h1>1950's</h1>
<p>Eddy.</p>
</li>
<li id="1960s"><img src="/gfx/timeline/1970.jpg" />
<h1>1960's</h1>
<p>1960s</p>
</li>
<li id="1970s"><img src="/gfx/timeline/1980.jpg" />
<h1>1970's</h1>
<p>1970s</p>
</li>
<li id="1980s"><img src="/gfx/timeline/1990.jpg" />
<h1>1980's</h1>
<p>1980s</p>
</li>
<li id="1990s"><img src="/gfx/timeline/1990.jpg" />
<h1>1990's</h1>
<p>1990s</p>
</li>
<li id="2000s"><img src="/gfx/timeline/2000.jpg" />
<h1>2000s</h1>
<p>2000s</p>
</li>
</ul>
But I don't understand how I can make it look like this...
Any assistance?thanks
Current CSS:
#timeline {
width: 660px;
height: 350px;
overflow: hidden;
margin: 100px auto;
position: relative;
background: url('Img/vline.png') left 65px repeat-x;
}
#dates {
width: 660px;
height: 60px;
overflow: hidden;
}
#dates li {
list-style: none;
float: left;
width: 100px;
height: 50px;
font-size: 24px;
text-align: center;
background: url('Img/hline.png') center bottom no-repeat;
}
#dates a {
line-height: 38px;
text-decoration:none;
color:#999;
font-size:15px;
font-weight:bold;
}
#dates .selected {
font-size: 38px;
color:#000;
}
#issues {
width: 660px;
height: 350px;
overflow: hidden;
}
#issues li {
width: 660px;
height: 350px;
list-style: none;
float: left;
}
#issues li img {
float: right;
margin: 100px 30px 10px 50px;
}
#issues li h1 {
color: #999;
font-size: 20px;
margin: 20px 0;
}
#issues li p {
font-size: 14px;
margin-right: 70px;
font-weight: normal;
line-height: 22px;
}
© Stack Overflow or respective owner