SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict shrikie's Avatar
    Join Date
    Dec 2002
    Location
    Hyperion
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Developing a full and a light version of a website

    We need to develop a full and a light version of a website. I'd like to do this with just changing the CSS depending on which version is chosen on the startpage. But I'd also like to use the same pages and just change the CSS on them. So updates only need to be done on one page.

    So I need to switch off images, backgrounds etc.. is this possible?

    Thanks in advance

  2. #2
    SitePoint Guru
    Join Date
    Dec 1999
    Location
    Southampton, Hants, UK
    Posts
    672
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can have 3 stylesheets:-

    A Common one - this would prob contain layout and font details
    A Full Version - this would contain all the part applicable to the full site - where images go etc..
    A Light Version - this would contain anything applicable to the light version, ie: only black and white parts.

    You would then include the common stylesheet and either the full or light one.

    I think this is how you would do it.

    if you really wanted to go all, you could have your CSS file as a dynamic php file that called colours and stuff from an external config file or database. - might be a bit overkill though!

  3. #3
    SitePoint Addict shrikie's Avatar
    Join Date
    Dec 2002
    Location
    Hyperion
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you.

    Yes, so it's possible to switch off all images with a CSS?

  4. #4
    SitePoint Guru
    Join Date
    Dec 1999
    Location
    Southampton, Hants, UK
    Posts
    672
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you.

    Yes, so it's possible to switch off all images with a CSS?
    Im not positive but I would certainly expect so

  5. #5
    SitePoint Addict shrikie's Avatar
    Join Date
    Dec 2002
    Location
    Hyperion
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    woh hmm <style>img {display:none}</style> :-)

    thanks

  6. #6
    SitePoint Addict BenANFA's Avatar
    Join Date
    Apr 2003
    Location
    Bath, UK
    Posts
    353
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by daniel_eastley
    if you really wanted to go all, you could have your CSS file as a dynamic php file that called colours and stuff from an external config file or database. - might be a bit overkill though!
    Or alternitively make the HTML files php files and have a small amount of php that links to either the light or full version file.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •