Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Button to switch ccs files

Featured Replies

I would like to design a few different looks for my site and have them switchable by the user.

 

The html will stay the same, the layout and content will be the same. All I will be doing is changing background images.

 

What I would like to find is some script (php / java) that simply switches from say arty_style.css to web2-0_style.css when the user chooses that option.

 

Also for this change to be kept when they go to a new url within my site and when they next come to the site would I need a login/signup system of some kind or can this kind of thing be stored in a cookie?

 

Thanks

To keep track of the user, you would need either a cookie or a login system.

 

The website CSS Zen Garden does exactly what you're thinking of in terms of style-switching. If you read their FAQ link you'll find a JavaScript style switcher, the CSS Zen Garden PHP style switching script and the reasons why David Shea (author) used PHP.

 

Hope if helps :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.