Jump to content

auto adjusting web


Matej

Recommended Posts

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 by Matej
Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...