Learn how to customize BrainKing's view layer and share your CSS experiences.
Useful links Wikipedia - for general information on what CSS is, why it is useful, and a short introduction on how to use it. W3Schools - for a tutorial and a reference on CSS. W3C - for detailed and advanced information for those who are interested. CSS Zen Garden - for some trickery and demonstration of what is possible with CSS
Seznam diskusních klubů
Není vám dovoleno psát zprávy do tohoto klubu. Minimální úroveň členství vyžadovaná pro psaní v tomto klubu je Brain jezdec.
coan.net: I've suggested before that Fencer makes a tiny change: wrap the entire body of the page in a single <DIV> which has a class that corresponds with the game.
So you'd have:
<DIV class = 'Dice Poker'> <DIV class = 'Froglet'> <DIV class = 'MiniShogi'>
You cannot do if-then statements in CSS. CSS isn't a programming language - there are just declarations.
<rant> Now, if the world would have gone DSSSL (which was there, working, well-tested and with a mature spec before the masses even knew about the web), you could have. DSSSL is Turing complete.
But the webguys suffer from NIH, and ability. So we have XML and CSS instead of SGML and DSSSL. </rant>
pauloaguia: I don't understand. By all means, the default should be user driven (aka, the browser) instead of site driven. Browsers have highlighted links ever since there were browsers - and it's highly recommended by the HTML standards that browsers do so. Links being highlighted is one of the few things that browsers actually agree on.
There's no need to have a style sheet highlight links by default because you cannot trust the browser.
Subjekt: Re: Dice Poker - Select Checkbox when you click dice
Změněno uživatelem AbigailII (14. dubna 2007, 16:50:21)
Fencer: You are right, I don't expect you to do it. It wouldn't be hard to code though, and I would have some use for it (for instance, setting the action to "stay here" for Battleboats, Frog Finder and Logic).
I do have a request though (not a JavaScript one). Sometimes I try something out in my CSS file, and it works great on the page I intend the effect for. But another page uses the same class names and there the effect is a disaster. Would it be possible to put the entire page inside a large DIV section whose class reflects the pagetype, and ID a further specification? For instance:
<div class = 'Board' id = '136'> ... BrainKing design board ... </div>
<div class = 'Board' id = '130'> ... Dice poker board ... </div>
<div class = 'ShowGame' id = '26'> ... Some Backgammon race game ... </div>
You might even want to throw in the language in a lang attribute.
Subjekt: Re: Dice Poker - Select Checkbox when you click dice
BIG BAD WOLF: I don't think it can be done with a (CSS) style sheet. Now, if only we could inject javascript.... I think it's possible with some javascript.
/* There are always waiting games and tournaments anyway */ /* so why display the number? */ td.menutd a[href=WaitingGames]+span.rednumber { display: none } td.menutd a[href=Tournaments]+span.rednumber { display: none }
/* Left hide side links I never use */ td.menutd a[href=Friends] { display: none } td.menutd a[href=Enemies] { display: none } td.menutd a[href="PlayerList?a=ap"] { display: none }
/* Make the left hide side column smaller */ #menu-column { background: #e0e0e0; margin-bottom: 10px; padding: 6px; } /* Outcomment original line */ td.menutd { font-size: 80% }
volant: Not necessarely. Most browsers will happely use a 'file:' URL, meaning you could store the CSS file locally. For instance: file:///home/abigail/Styles/bk.css
Změněno uživatelem AbigailII (6. dubna 2007, 15:46:42)
Fencer: Thank you.
I have a couple of more requests:
Give all the smileys class; preferably a class indicating a smiley, and a class indicating which smiley it is. That enables people do something with all smileys, or with specific ones. For instance: <img src="/images/smileys/1116.gif" class = "smiley smiley1116">
Give the entries in the left hand column ('Main Page', 'New game', etc) different ids, so you can CSS to ignore the ones you don't use.
In boards, can there be a class for the subject? Also for the 'show this user posts | show thread | link' part. The latter is inside a div with class 'spacer to-right', but that doesn't seem be significant enough to refer to this line.
The board postings have many elements (icon indicating membership, name, envelope, board, hide link, date, subject, etc, etc) - ideal would be to have distinctive classes for each element.
It would be nice if the list of boards on the right hand side had classes indicating whether the board has new notes on it or not.
And have boards with new nodes show up in red, without the number. If there's also a class indicating no new nodes one could even write some CSS that only lists the boards with new nodes. </ul>
Změněno uživatelem AbigailII (6. dubna 2007, 01:54:52)
Could the image indicating an on-line opponent and its following nbsp (<img src=/images/online.gif> ) be put in a span with a decidated class? For instance:
<span class = 'online-indicator'><img src='/images/online.gif'> </span>
Fencer: I wonder how many of those 3572 castle users have no idea you can change style (since castle is the default). Did you keep statistics of which styles people used in the past? If so, one can figure out how many of the castle users have actually tried out the other styles.
I'm looking at having certain items in the right hide side column to be hidden. For instance, if you don't bother with labelling people, you will never have any friends that can be online, and you may want the 'Friends online' box in the RHS column to be hidden. But currently, this isn't easy to do - the box consists of a table with two rows. The class of the table is 'status-inner-space', but you cannot say "oh, I'll just set visibility for that class to hidden', because then other boxes will disappear as well. And while the 'Friends online' has a unique class ("status-friends-header"), the following 'none' is in the class ("menu-section"), which isn't unique either. Even '.status-inner-space.menu-section' isn't unique.
It would be useful if the tables forming the boxes in the RHS column (Date and time, Friends online, Favourite boards, Fellowships, Tip of the day) were inside DIV elements with unique class or id names.
Well, I know CSS, but how do I get BrainKing to use my CSS? Unfortunally, my browser doesn't have an option to insert a user supplied style sheet in addition to the document supplied style sheet.
(skrýt) Pokud se stránky náhle začnou zobrazovat v jiném jazyce, klikněte na vlajku pro váš jazyk a vše se vrátí do normálu. (pauloaguia) (zobrazit všechny tipy)