Tweak

InsaneJournal

Tweak says, "Dag, yo."

Username: 
Password:    
Remember Me
  • Create Account
  • IJ Login
  • OpenID Login
Search by : 
  • View
    • Create Account
    • IJ Login
    • OpenID Login
  • Journal
    • Post
    • Edit Entries
    • Customize Journal
    • Comment Settings
    • Recent Comments
    • Manage Tags
  • Account
    • Manage Account
    • Viewing Options
    • Manage Profile
    • Manage Notifications
    • Manage Pictures
    • Manage Schools
    • Account Status
  • Friends
    • Edit Friends
    • Edit Custom Groups
    • Friends Filter
    • Nudge Friends
    • Invite
    • Create RSS Feed
  • Asylums
    • Post
    • Asylum Invitations
    • Manage Asylums
    • Create Asylum
  • Site
    • Support
    • Upgrade Account
    • FAQs
    • Search By Location
    • Search By Interest
    • Search Randomly

rusty kuhnts ([info]igpayatinlay) wrote in [info]rp_tutorials,
@ 2010-04-28 02:40:00

Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Entry tags:coding: timelines


j
a
n
u
a
r
y
3.1.2010 An event that happened on 3 January, 2010 goes here. I'm going to talk a bit more about it, just because there will be some description on your timeline, I bet. Let's pretend that I'm saying something interesting, why don't we?
12.1.2010 An event that happened on 12 January, 2010 goes here. For this one, the less description the better.
25.1.2010 An event that happened on 25 January, 2010 goes here. This one deserves some serious Lorem Ipsum, since it's so complicated. Duis ac molestie diam. Etiam hendrerit faucibus augue, nec iaculis augue venenatis in. Phasellus ornare congue justo sit amet dignissim. Nulla nisl leo, luctus a placerat vitae, gravida vitae ligula. Mauris scelerisque porta libero, id posuere libero porta vitae. Aenean in nulla purus. Proin semper quam vel nunc eleifend scelerisque. Fusce placerat est non lacus auctor placerat. Duis eget elit quis massa posuere ullamcorper. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vivamus ut egestas magna.
f
e
b
14.1.2010 An event that happened on 14 February, 2010 goes here. For this one, the less description the better.


So this uses basic table code, and utilizes the rowspan property to define sections. Here's how!
  1. Start your table:
  2. Start your first row:
  3. For the left-hand columns (the division of time), use one of these cells here:
  4. For the little colored line that goes the whole way down your timeline, you need only do this next step once. Right now it's set to span 1,000 rows. If for some reason your timeline is one hefty BAMF of a timeline, increase the rowspan to suit however many events you have in total.
  5. Now we're on to the cell that contains each event.
  6. Close this row!
  7. Since the first two columns are set to span rows, all subsequent rows in each section only need the event cell (step five).
  8. This should now look like the "January" section in the example above, which is set for 3 events.
  9. Once you've hit the number of rows that your first column is set to span, you have to repeat step three to start a new section, and then back at it with the rows-as-events.
  10. Could I BE more confusing? ... well sure, but if I've been too confusing and you have questions, ask and I'll try to explain better!
  11. Obviously, you can change up the font-family to suit your style, the font-size to suit your tastes, the hexidecimal colors (#e8e8e8 is the grey, #4D837D is the blue, #000000 is black) to suit your palette, the width of the table and the columns to suit your space, etc.
  12. For anyone who prefers to edit an example as a whole, here's the exact code for the sample above:


(Post a new comment)


[info]ginge
2010-04-28 01:21 pm UTC (link)
Ohh! That's amazing!

(Reply to this) (Thread)


[info]squidtastic
2010-04-28 02:15 pm UTC (link)
Agreeeed. It's amazingly perfect.

(Reply to this) (Parent) (Thread)


[info]igpayatinlay
2010-04-28 07:25 pm UTC (link)
Thank you, I'm glad it's not just hard to understand, as I feared it would be! XD

(Reply to this) (Parent)


[info]igpayatinlay
2010-04-28 07:24 pm UTC (link)
Thanks! :D

(Reply to this) (Parent)


[info]theowl
2010-04-28 05:21 pm UTC (link)
I really like the way you made the "bullets." Very neat.

(Reply to this) (Thread)


[info]igpayatinlay
2010-04-28 07:26 pm UTC (link)
Thank you! I fussed around with a couple other ideas, but I thought that - mixed with the table's cellspacing and cellpadding - this gave the best visual distinction while not adding in too much more complexity in the code. :)

(Reply to this) (Parent)


[info]hammertech
2010-04-30 07:22 pm UTC (link)
I approve! As someone else has mentioned, the bullets are very clever. And I really like how you explained it.

(Reply to this) (Thread)


[info]t_quibbler
2010-04-30 11:40 pm UTC (link)
TY, BB! I was worried it'd be omgwtfbbq confusing, but yay!

(Reply to this) (Parent)


[info]dontyouknowme
2010-05-10 04:48 am UTC (link)
This is really freakin amazing. No, really. So cool, and so needed.

(Reply to this) (Thread)


[info]igpayatinlay
2010-05-10 05:11 am UTC (link)
Hahaha! Awesome, I'm glad you like it! :)

(Reply to this) (Parent)


[info]themodssayboo
2013-09-18 10:26 am UTC (link)
Hi there, it's Whit! This is absolutely perfect! I'm going to use it for Halloweening's weekly calendar and will credit you and this. <3 You rock!

(Reply to this) (Thread)


[info]t_quibbler
2013-09-18 06:52 pm UTC (link)
Hooray Whit! I'm glad it works for Halloweening! :D

(Reply to this) (Parent)



Home | Site Map | Manage Account | TOS | Privacy | Support | FAQs