CSS question
Moderators: Public Relations Department, Players Department, Programming Department
- SekoETC
- Posts: 15525
- Joined: Wed May 05, 2004 11:07 am
- Location: Finland
- Contact:
CSS question
Would it be possible to use different style sheets for different characters? Especially when you have two characters in the same location, if you could for example change the colors or background to something different, it would be easier to tell them apart and you would be certain you were playing the right one without having to check the name.
Not-so-sad panda
- EchoMan
- Posts: 7768
- Joined: Fri Aug 26, 2005 1:01 pm
- Location: Stockholm, Sweden
Re: CSS question
Currently it is not. The CSS you manually enter is applied to the whole game.
- Shaderon
- Posts: 267
- Joined: Wed Sep 21, 2005 5:53 am
- Location: England (The rain center of the universe or so it seems)
Re: CSS question
That would definitely help a lot.
Earn cash in your spare time by blackmailing your friends - A spam email is for life not just for Christmas.
- Greek
- Programming Dept. Member/Translator-Polish
- Posts: 4726
- Joined: Mon Feb 13, 2006 5:41 pm
- Location: Kraków, Poland
- Contact:
Re: CSS question
It's possible to do it client-side, as js script or something 

‘Never! Run before you walk! Fly before you crawl! Keep moving forward! You think we should try to get a decent mail service in the city. I think we should try to send letters anywhere in the world! Because if we fail, I’d rather fail really hugely’
- joo
- Posts: 5021
- Joined: Fri Jun 17, 2005 2:26 pm
- Location: London, UK
Re: CSS question
There is a hack using pure CSS that achieves something like this (in recent versions of Firefox and Chrome, at least):
Replace 314159 the ID of the character you wish to affect (which can be found in the HTML source of their character page, as something like: <input id="ownCharId" type="hidden" name="ocharid" value="314159">); change both instances of #400 to the background colour you want for that character; and then, on each main character page (notably excluding sub-pages like notes, hunting, and character descriptions, where I'm not sure it can be done with pure CSS) that background colour will (appear to) be used. You can make multiple copies of the second section, with each one affecting a different character.
Code: Select all
body > table:first-of-type {
background: none !important;
}
#ownCharId[value="314159"] ~ td:first-of-type b:first-of-type {
outline: 9999px solid #400;
background: #400;
position: relative;
z-index: -1;
}
Replace 314159 the ID of the character you wish to affect (which can be found in the HTML source of their character page, as something like: <input id="ownCharId" type="hidden" name="ocharid" value="314159">); change both instances of #400 to the background colour you want for that character; and then, on each main character page (notably excluding sub-pages like notes, hunting, and character descriptions, where I'm not sure it can be done with pure CSS) that background colour will (appear to) be used. You can make multiple copies of the second section, with each one affecting a different character.
- SekoETC
- Posts: 15525
- Joined: Wed May 05, 2004 11:07 am
- Location: Finland
- Contact:
Re: CSS question
Ok, looks like you have to hit Ctrl F5 to make it use the new CSS. I picked a color at random and good god it was hideous! Ok, best to pick something that makes the text readable.
Not-so-sad panda
Who is online
Users browsing this forum: No registered users and 0 guests