CAPS LIKE WHOA (jc) wrote,
CAPS LIKE WHOA
jc

  • Mood:
  • Music:

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.
Tags: css, overrides, s1, s1 punquin, styles
Subscribe

  • A new beginning

    So, at 11:55:43am, it finally happened. The computer froze, and I left it for a full ten minutes before finally resigning myself to the task of…

  • Rawr

    The Panther CDs arrived in the post at just after 3pm, a full seven hours after TNT listed the package as being "Out for delivery". Despite only…

  • Cool Cat

    I've been fairly lucky with Mac OS X since the first Public Beta was released upon the public in the last quarter of 2000. At the time, I almost…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 4 comments