News:

The anti-spam plugins have stopped being effective. Registration is back to requiring approval. After registering, you must ALSO email me with your username, so that I can manually approve your account.

Main Menu

Wonderful Style-Switching!

Started by Miluette, October 05, 2008, 01:25:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Miluette

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

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

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

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

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

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

#6
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
And wasn't it you who told me,
"The sun would always chase the day"?

Zumi

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