phpfan Posted March 31, 2007 Share Posted March 31, 2007 Hi all I have a problem and i think the solution can be fount using JavaScript code.. Actually i want to create a website that will be able to resize automatically according to the visitor's screen resolution.. If any of you have try this before or can point me to any kind of tutorials i will appreciate it very much.. Thank You Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 31, 2007 Share Posted March 31, 2007 Why javascript? If you don't FORCE a width on anything it'll expand to fill the viewport at every resolution. Quote Link to comment Share on other sites More sharing options...
phpfan Posted March 31, 2007 Author Share Posted March 31, 2007 What to you mean by FORCE the width??? Make the with 100% instead of a constant value?? Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 31, 2007 Share Posted March 31, 2007 What to you mean by FORCE the width??? Make the with 100% instead of a constant value?? Exactly. Or make it some other percentage, or fix the width of the page margins, etc. Quote Link to comment Share on other sites More sharing options...
phpfan Posted April 2, 2007 Author Share Posted April 2, 2007 I have tried to set the width to a % instead on a constant value but the tables now resize according to the text that exist inside and i have to scroll horizontally to view all the content.... ??? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.