Hazukiy Posted March 25, 2013 Share Posted March 25, 2013 Hi, I'm trying to make it so that my Wrapper fixes to the screen resolution depending on your screen, so I'm basically debugging on both my laptop and my 32"" monitor. Would they be any possible way to make it so: "height: 100%" "width: 100%" If so how would I do this method? I've got this far atm: (The wrapper is help inside the main Container which just has "width: 100%; min-width: 100%; padding: 0; margin: 0; " Excuse my sloppy coding. .index_wrapper { width: 100%; height: 1600px; min-width: 500px; max-width: 100%; min-height: 500px; max-height: 1600px; margin-top: 50px; margin-bottom: 25px; margin-right: auto; margin-left: auto; } .index_content { background-color: #1e1f1f; background-image:url('images/structure/background-2.jpg'); background-repeat: no-repeat; height: 100%; min-height: 100%; width: 100%; min-width: 1452px; border: 1px solid #505050; border-left:none; border-right:none; border-top: none; vertical-align: baseline; } Quote Link to comment https://forums.phpfreaks.com/topic/276135-fix-height-to-screen-issue/ Share on other sites More sharing options...
haku Posted March 26, 2013 Share Posted March 26, 2013 What are you trying to do? Quote Link to comment https://forums.phpfreaks.com/topic/276135-fix-height-to-screen-issue/#findComment-1421057 Share on other sites More sharing options...
Hazukiy Posted March 26, 2013 Author Share Posted March 26, 2013 What are you trying to do? "I'm trying to make it so that my Wrapper fixes to the screen resolution" Quote Link to comment https://forums.phpfreaks.com/topic/276135-fix-height-to-screen-issue/#findComment-1421179 Share on other sites More sharing options...
haku Posted March 27, 2013 Share Posted March 27, 2013 (edited) I suppose you thought that answer made things clearer. But all you did was tell us again how you are trying to do whatever it is that you are trying to do, not what it is you are trying to do. Edited March 27, 2013 by haku Quote Link to comment https://forums.phpfreaks.com/topic/276135-fix-height-to-screen-issue/#findComment-1421282 Share on other sites More sharing options...
Libellula Posted March 28, 2013 Share Posted March 28, 2013 (edited) So you want to make your website responsive, correct? Depending on what size monitor or device you are on, you want your content to size up or size down to fit that size of screen? Makes sense. The ability to do this is going to depend on your content. How do you have your website coded? Are you using HTML5? Is your content in tables or within DIV tags or another format? If you have this site online, maybe you could provide a url and we can look at it. Using the coding you are trying to use, it probably won't work. I am assuming you have a conflict between "space needed" and "space provided", so it is just defaulting to "space needed". If you have your wrapper set up correctly, this might work. .wrapper { margin: 0 auto; width: 940px; position: relative; } Change the width to what your site looks best in originally. Edited March 28, 2013 by Libellula Quote Link to comment https://forums.phpfreaks.com/topic/276135-fix-height-to-screen-issue/#findComment-1421663 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.