ISO Image
Creator | Cheap
EQ2 gold - Buy EQ2 gold, EVE ISK, EQ Plat and more!


Advanced Css
Jul 6 2004, 08:44 AM

Super-Themer
![]()
Group: Members
Posts: 332
Joined: 29-August 03
From: Michigan
Member No.: 3,012
United States
![]()
No C.S.S | V. II | V.I
and when you click on one of them it changes the whole layout. I want to do the same thing except change the color of the layout so the user can chooose the layout color. Matter of fact Spoono does exactly what I'm trying to do. If you go to that site it says flavor and you choose the color which I'm trying to do. If anyone knows how or knows of a tutorial please point me in the right direction. Thanks in advance.
Jul 6 2004, 09:09 AM

Super-Themer
![]()
Group: Members
Posts: 332
Joined: 29-August 03
From: Michigan
Member No.: 3,012
United States
![]()
Spoono Tutorial
I don't get how it would change the colors. Would I have to include the different colored images on the css files or what???
And if I do how do I do that, just take the all html code and put it in the css file, lol.
Jul 6 2004, 11:34 AM
![]()
Administrator
![]()
Group: Admin
Posts: 10,302
Joined: 9-February 03
From: Jacksonville, FL
Member No.: 1
United States
![]()
#1...create an folder to store the images in. Then, inside this folder, create a new folder for each color (i.e. img/blue/ and img/red/).
#2...upload all the colored images you need to use to each individual folder.
#3...you create a different .css file for each "skin" you want. I.e. you can create a red.css and a blue.css.
I notice they are using php to differentiate the CSS files, but it can easily be done with html as well if it's just an html site.
Basically, you use the following code to call a CSS file:
@import url(css/red.css);
</style>
So, if it's just html, create an index.html and an index1.html.
In index.html, use the code above and put the red.css inside a "css" folder. Then put the blue.css in there as well, and instead of the code above, in your index1.html, use this code:
@import url(css/blue.css);
</style>
Then when you load index.html it will load the red colored CSS and when you load index1.html it will load the blue colored CSS.
Now, as for images, if you use two different .html pages it will be easy enough to just map to the right images in each .html page. For the site you showed as an example, however, I believe they are using CSS and tables to display the correct images.
background-image: url('path/to/image/image.gif');
as an example.
Hope this helps.
Jul 6 2004, 11:57 AM

Super-Themer
![]()
Group: Members
Posts: 332
Joined: 29-August 03
From: Michigan
Member No.: 3,012
United States
![]()
it might take a while though. I'm planning on using only 2 or 3 different colors. Thanks alot b that helped alot.
Jul 6 2004, 12:03 PM

Super-Themer
![]()
Group: Members
Posts: 332
Joined: 29-August 03
From: Michigan
Member No.: 3,012
United States
![]()
On "RED" CSS file.
banner.td {background-image: url('red/banner.jpg');}
On "BLUE" CSS file.
banner.td {background-image: url('blue/banner.jpg');}
and after that just link to the different css files witht the tutorial.
Jul 6 2004, 05:41 PM
![]()
Administrator
![]()
Group: Admin
Posts: 10,302
Joined: 9-February 03
From: Jacksonville, FL
Member No.: 1
United States
![]()
![]()
It is the most efficient way because of the fact if you do it that way, then you only have one .html page to create, and all changes are made in the CSS files. Then, if you want to change something on the .html page, you only have to do it one time.
It gives it more of a "skin" feel than a different page feel.


Lo-Fi Version
Time is now: 28th August 2008 - 05:57 AM
![]()
Webber Enhanced skin created by Im4eversmart of RuneHQ.