Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / July 2007



Tip: Looking for answers? Try searching our database.

Help newbie: CSS to switch between templates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
©® - 28 Jul 2007 04:24 GMT
I would like to set up my website so that visitors can choose a
template/design on how the layout will look from say one or two designs.
I am very new to all this so was wondering if there is a tutorial on how I
can try it out. (Not even sure what this "feature" is called!)
Having the website remember the user's choice so when they return would be
helpful.
Any links/tuts appreciated. Thanks!
dorayme - 28 Jul 2007 04:49 GMT
> I would like to set up my website so that visitors can choose a
> template/design on how the layout will look from say one or two designs.
[quoted text clipped - 3 lines]
> helpful.
> Any links/tuts appreciated. Thanks!

The simplest is to have a link on each of the templates that goes
to the other. You make two html files, with different names, and
each links to a different css sheet. So,

template1.html
template2.html

and

style1.css
style2.css

In template1.html you will have a line in the head of the doc  
like

<link rel="stylesheet" type="text/css" href="style1.css">

and in the body in a convenient place a link like:

<a href="template2.html">See this page in a totally different
style</a>

while in template2.html you will have a line in the head of the
doc  like

<link rel="stylesheet" type="text/css" href="style2.css">

and in the body in a convenient place a link like:

<a href="template1.html">See this page in a totally different
style</a>

Signature

dorayme

Beauregard T. Shagnasty - 28 Jul 2007 05:07 GMT
>> I would like to set up my website so that visitors can choose a
>> template/design on how the layout will look from say one or two
[quoted text clipped - 6 lines]
> the other. You make two html files, with different names, and each
> links to a different css sheet. So,

The OP's requests sounds like http://csszengarden.com to me ...  ;-)
one HTML file, multiple CSS files.

Signature

  -bts
  -Motorcycles defy gravity; cars just suck

dorayme - 28 Jul 2007 05:54 GMT
In article
<eizqi.6767$ax1.2649@bgtnsc05-news.ops.worldnet.att.net>,

> >> I would like to set up my website so that visitors can choose a
> >> template/design on how the layout will look from say one or two
[quoted text clipped - 9 lines]
> The OP's requests sounds like http://csszengarden.com to me ...  ;-)
> one HTML file, multiple CSS files.

I did have that thought but he did say one or two designs so I
know what I would find simplest in this situation and so I
project to others (a dangerous leap across species, I know. But
it is almost as if I am human while here on earth. Honest!). I
had meant to add that others will blind the OP with science, for
sure.

Signature

dorayme

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.