views:

73

answers:

4

Can we make website scalable , stretchable like elastic rubber including text ,images, video, JavaScript and that site should be accessible from all devices which access to web?

I want to set max-width 980 px for site but minimum width can be everything and height should depend on content.

+1  A: 

In the book CSS Mastery, Cameronn Adams explains just that, dig that out :)

Sarfraz
That really isn't much of an answer.
random
A: 

You can ease your development by doing separate CSS for different media

Otherwise, it might be a bit tricky, as floatable designs are really really difficult to get accross paltform/browser.

Vladimir Kocjancic
can we get a list meadia supported device as per css media
metal-gear-solid
A: 

I recommend that you look at this page:

http://emacsformacosx.com/

However, I recommend that you mak at least two layouts - either by separating CSS or by having differtent HTML templates:

  • one for desktop (width >640 px)
  • second for mobile devices,

becouse those differ in how UI (and UX) works. For example you might need to make bigger buttons in mobile, which would look cumbersome on a laptop browser, or you might need to rearange menu position on different platforms.

hegemon
A: 

The technique is a few years old, and I haven't seen it used in a long time, but you could perhaps try using javascript to load different stylesheets based on screen resolution?

See here for more information:

Personally I was never a fan of this method, but in theory it should do (more or less) what you want. The only issue might be a little updating is needed for newer browsers. Non-JS devices such as mobiles can be taken care of with a good default stylesheet and well-structured underlying HTML.

Chris