ユーザー名: パスワード:
新ユーザー登録
管理人: toedder 
 BrainKing design

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


1ページあたりのメッセージ件数:
掲示板表
この掲示板でメッセージを作成にはナイト会員以上の会員レベルが必要となりますので、あなたは作成権限が有りません。
モード: 誰でも投稿可能
メールの内容の検索:  

8. 6月 2007, 22:25:54
coan.net 
件名: Next Task
I won't answer my next question right away (since I'm about to get off the computer).

But is there a way to do if - then statements in a css?

One of the things that annoy me about some games, is that you need to know past information - or current information that is in the game notation. (Like in Ice Age Chess - the only way to see current move is to show the game notation.... which of course stays visiable in all the games - Ugh) Plus other games like Dark Chess & Frog Finder - past turn information can also be used. I'm sure there are others, but that is 3 games I know I have to keep turning on game notation just to see 1 thing.

What I would like to do is something like

If game is Battleboats, then game notation { visibility: hidden; }
and repeat for all the games.

or do the opposet for the few games that needs to show the game notation. So any ideas or suggestions? Is if/then statements possible, or is there a better way to do it?

8. 6月 2007, 22:45:32
AbigailII 
件名: Re: Next Task
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'>


etc.

8. 6月 2007, 23:20:58
pauloaguia 
件名: Re: Next Task
coan.net: Css is like a big bunch of IFs. "If a tag has id something render it like this" or "if a tag <xxx> has a child <yyy> render it so and so"

What you'r probably like are more selectors. Some that would let you select according to the text inside the tags... But that doesn't exist.

AbigailII's suggestion about an extra element identifying the page subject seems like the best way togo. But of course,that's work for Fencer not you

日時
オンライン友達
気に入り掲示板
同好会
今日のアドバイス
著作権 © 2002 - 2024 Filip Rachunek.
上へ