Log in

No account? Create an account


not yours

because I say so

Previous Entry Share Next Entry
Style customisation
For a free account, there's a hell of a lot you can do to customise a basic style. I'm impressed with the results, as you probably will be, but shattered: I've just been through the ordeal of overriding the style of this journal, Punquin w/sidebar, to the absolute limit. And boy, does it play hell with some of the techniques I used.

Now, in an ideal world all major HTML elements in all LiveJournal styles would have a CSS class or ID associated with it, so you can simply manipulate them to your heart's content in a stylesheet placed in the GLOBAL_HEAD override. Unfortunately, Punquin wasn't designed with this concept in mind, so I had to think of another way to do what I wanted to do.

And then it hit me: maybe I could insert arbitrary code into the colour values of my journal. If instead of white I put white" class="something, it would be stuck in a set of inverted commas as normal and would give me two perfectly formatted attributes as a result.

My initial tests went well, but the way LJ parses the colour value is somewhat erratic. I don't know how it's done - maybe somebody with an understanding of the code could enlighten me? - but in some cases it played merry hell with the HTML.

Punquin decided to be even more weird by behaving differently on the New Entries page from all other pages, and its Friends page is designed so as not to let you override FRIENDS_TALK_LINKS or FRIENDS_TALK_READLINK. So much for that. I managed to work around the different treatment of pages by overriding a couple of style attributes in the CALENDAR_HEAD, FRIENDS_HEAD and DAY_HEAD overrides.

Everything now looks great on any recent browser which handles CSS semi-decently. If your browser doesn't support Cascading Style Sheets, this journal will mostly look like crap. Sorry.

  • 1

well color me impressed!

It's Mike aka GRIFFIN3 from TrekkerChat and Fleet 13 and all that, stuff...way back ;)

So you're the one that's given Kris all her powers of beautiful lj layout? Heh.

Nice journal layout. Love the extra links on the side.
I've vowed to learn how to do this myself at some point as a new year's resolution.

Just wanted to say hi, long time, no chat :)

Well stone me silly and call me Charlie

Glad you like both new layouts. Kris's layout is her own design, incidentally; I just helped her understand how to adapt Penquin. Kris only ever referred to you as "Mike who you may not know" when I first saw your LJ username used in conversation, so I'm just as happy now I know you're the Mike O I once knew, back in the mists of time. :D

When you get around to learning more about how LJ code works, I'll be more than happy to help out. Viva la LJ!

jc, you rock the LJ world. I'm very, very impressed with what you've done. I love the links you've added, the comments, and especially the background. I hope to go out west someday! Maybe next summer, when - not if! - I go out to the Gorge. Whoo hoo!

And sorry for the confusion, boys. I'm sorry I didn't make myself clearer. And Mike, if at all I can help you with the impossible LJ code, I'll try. Although jc may be better at that. You may be a better student, I started glaring at my computer and getting extremely frustrated with the code, as jc can attest.

and I may take both of you up on your kind offers ;)
if I ever get some time to devote to it, that is!

  • 1