Log in

View Full Version : index of contents - tableless?



ggerri
11-20-2008, 11:05 PM
Hi guys :)

need to do a index of contents which looks more like a page out of a book than a website ;) Something like this:

http://www.ggerri.com/vid/index.jpg

I'd like to do that tableless but dont really get it how to manage that the subjects are aligned left and the pages right :confused:. Subject AND Page # should both href to the selected page.

Thanks for any help :)
ggerri

Snookerman
11-20-2008, 11:38 PM
Here you go:
HTML:
<div id="subject">Subject<br />
<a href="">About this</a><br />
<a href="">My things</a></div>
<div id="page">Page<br />
<a href="">1</a><br />
<a href="">2</a></div>

CSS:
#subject {
float:left;
width:200px;
}
#page {
text-align:right;
float:left;
width:200px;
}