Author Topic: Wonderful Style-Switching!  (Read 9149 times)

0 Members and 1 Guest are viewing this topic.

Miluette

  • Sr. Member
  • ****
  • Posts: 332
  • C:
    • View Profile
    • Miluette dot com
Wonderful Style-Switching!
« on: October 05, 2008, 01:25:06 am »
So, I recently figured out how to make different layouts for the same website using only CSS (and a tad of Javascript). It is lovely. I have made three layouts for my Lovefeast website, seen here:

http://lf.senshuu.com/index2.php

Three image links in the sidebar change the layout just like that, and soon I'll be adding one more! Why haven't more people done this?? (Or maybe they have and I just haven't seen... but seriously, I wanna see it more on the kinds of sites I browse!)

While I'm still tweaking and improving things with all the layouts and doing some things tableless has been an absolute pain in the fanny, I'm really liking that I'm able to do this. Of course, sooner or later I'll figure out how to better do some of the things I'm doing in CSS, but for now I'm happy. <3

For the record, this is the tutorial I used: http://www.alistapart.com/stories/alternate/ This website is pretty great.
And wasn't it you who told me,
"The sun would always chase the day"?

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,333
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Re: Wonderful Style-Switching!
« Reply #1 on: October 05, 2008, 03:15:21 pm »
Little gamers did that for a while. I think they ditched it because it was a pain to maintain three layouts. From my own perspective, I make a site to look how I think it's best. It's not for the user to switch around. :-)

Miluette

  • Sr. Member
  • ****
  • Posts: 332
  • C:
    • View Profile
    • Miluette dot com
Re: Wonderful Style-Switching!
« Reply #2 on: October 05, 2008, 08:05:50 pm »
I bet that's what most people think. But that's for a certain kind of website!
With something artsy like a single webcomic, you can do something like this and get away with it. Of course, I like some layouts more than others, but that's my own preference... I wanna see if others have different prefs and ultimately root out or improve the weaker layouts, hee.

I'd never do something like this for my art site or portfolio. The best I can do with those is make  them semi-interactive.
And wasn't it you who told me,
"The sun would always chase the day"?

yny-u

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • yny-u
Re: Wonderful Style-Switching!
« Reply #3 on: October 05, 2008, 09:48:22 pm »
Actually this sort of thing can be really handy under the surface for getting around browser specific issues *coughIEcough* or making platform specific layouts (for iPhone and the like)...

Miluette

  • Sr. Member
  • ****
  • Posts: 332
  • C:
    • View Profile
    • Miluette dot com
Re: Wonderful Style-Switching!
« Reply #4 on: October 05, 2008, 11:00:42 pm »
Oooo...I wonder how my sites would look on iPhones. A long time ago I looked at one of them on an iPhone and, well, it was messed up, lol. That was before I really cleaned things up code-wise, though.
And wasn't it you who told me,
"The sun would always chase the day"?

Databits

  • Global Moderator
  • *****
  • Posts: 1,607
  • Programming's not just a science, it's an art.
    • View Profile
Re: Wonderful Style-Switching!
« Reply #5 on: October 08, 2008, 02:24:28 am »
If you design your CSS and page layout correctly, you shouldn't need alternate versions for different browsers.
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]

Miluette

  • Sr. Member
  • ****
  • Posts: 332
  • C:
    • View Profile
    • Miluette dot com
Re: Wonderful Style-Switching!
« Reply #6 on: October 11, 2008, 03:11:38 am »
Yes, it was to my surprise that my layouts and javascript don't seem to whack out across browsers! (Besides the whacked-out parts that I have yet to figure out myself.) That's one less thing for me to worry about.

I'm glad doing something for art's sake wasn't limited by technology, for once. <3
« Last Edit: October 11, 2008, 09:47:22 pm by Senshuu »
And wasn't it you who told me,
"The sun would always chase the day"?

Zumi

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Wonderful Style-Switching!
« Reply #7 on: October 11, 2008, 09:15:27 pm »
i learnt how to deal with browser related issues in class, i was the only guy who understood it lol
So i strike to make my sites compatable on all broswers :P Only i get to decide what my sites look like mwa ha h ah aha ha