Matej Posted May 24, 2014 Share Posted May 24, 2014 (edited) Hello gentlemen , i'd like to make auto-adjusting web(on resize). i was trying to do html,body{width:100%;heigth:100%} also triedbody html{max-width:100%;min-width:20%} but its not working , can someone advise me? Edited May 24, 2014 by Matej Link to comment Share on other sites More sharing options...
Ingolme Posted May 25, 2014 Share Posted May 25, 2014 What do you mean "auto-adjusting"? There are a series of different behaviors that could be given that description. Block elements automatically take the full width of their container so width: 100% is rarely ever needed. Link to comment Share on other sites More sharing options...
Matej Posted May 25, 2014 Author Share Posted May 25, 2014 I'd like to adjust my website to suit a users screen resolution. Link to comment Share on other sites More sharing options...
davej Posted May 25, 2014 Share Posted May 25, 2014 Use percentages for block elements that are less than 100%. Also look at @media blocks to reconfigure the screen when things get too narrow. Do a web search for "responsive web design." Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now