Increase spaces when decreasing page

0

I'm creating an HTML5 page where I want to put the correct page size for all usage types, ie the page appears correct regardless of the screen size.

When I reduce the HTML page this happens:

In css how do I fix this?

    
asked by anonymous 19.01.2015 / 12:40

3 answers

2

Use% instead of px. Study fluid layouts or media query. If you want to use a front-end framework I recommend the bootstrap.

    
19.01.2015 / 13:38
1

If I understood your layout well, both the top bar and the bottom bar are fixed. You can not increase the content space. What you can do is add the scroll bars when needed.

See an example in JSFiddle . The css is commented out to better understand the example.

    
19.01.2015 / 13:48
0

I advise you to study fluid layouts. But starting with % instead of px in your margins and paddings , is already a great start.

    
19.01.2015 / 13:24