Hiikaru
Run.
- Pronoun
- he
Okay, I'm building some stylesheets for my Eevee game now that my files are back. (ETA: I'm using CSS stylesheets, PHP includes, and a PHP styleswitcher, by the way)
In this game, you take care of an Eevee. There's a navigation bar somewhere on the page (location depends on which style), which has icons to feed it, give it a drink, brush it, etc. Usually, the navigation bar uses the same icons: an apple, a brush, a cup, a bar of soap, a flower, and a bottle of medicine.
But in some of the styles (black and blue, currently), they're replaced. In the blue style, all of the icons are, you know, blue (and buttonized), and in the black style, they're all Halloween themed.
The reason I'm using stylesheets, obviously, is so I don't have to have the icons and headers and things on the regular pages, so keeping my navigation there is kind of a step backwards.
What's the best way to have specific icons for each style? Can I tell the style.css files to include a .PHP file, or use some kind of "If the user is on style x..." code, or what?
I think the codes would be similar to how people change the header/banner image for each style (for example, tCOD uses an Articuno header on one style, and a Scyther on another), so if anyone just does that I think I can work from those codes.
I googled it, but everyone's answer to this is more or less "I dunno, dude."
ETA: Nevermind about the banner comparison...
I thought you weren't supposed to be able to add "content like images" in CSS? =P
In this game, you take care of an Eevee. There's a navigation bar somewhere on the page (location depends on which style), which has icons to feed it, give it a drink, brush it, etc. Usually, the navigation bar uses the same icons: an apple, a brush, a cup, a bar of soap, a flower, and a bottle of medicine.
But in some of the styles (black and blue, currently), they're replaced. In the blue style, all of the icons are, you know, blue (and buttonized), and in the black style, they're all Halloween themed.
The reason I'm using stylesheets, obviously, is so I don't have to have the icons and headers and things on the regular pages, so keeping my navigation there is kind of a step backwards.
What's the best way to have specific icons for each style? Can I tell the style.css files to include a .PHP file, or use some kind of "If the user is on style x..." code, or what?
I think the codes would be similar to how people change the header/banner image for each style (for example, tCOD uses an Articuno header on one style, and a Scyther on another), so if anyone just does that I think I can work from those codes.
I googled it, but everyone's answer to this is more or less "I dunno, dude."
ETA: Nevermind about the banner comparison...
#banner {
margin:auto;
width:500px;
height:250px;
background-image:url('articuno-banner.png');
text-indent:-1000em;
}
I thought you weren't supposed to be able to add "content like images" in CSS? =P
Last edited: