Results 1 to 2 of 2

Thread: index of contents - tableless?

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default index of contents - tableless?

    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:



    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 . Subject AND Page # should both href to the selected page.

    Thanks for any help
    ggerri

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Here you go:
    HTML:
    HTML Code:
    <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:
    Code:
    #subject {
    	float:left;
    	width:200px;
    }
    #page {
    	text-align:right;
    	float:left;
    	width:200px;
    }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •