How to define the dimensions of an HTML page? [closed]

0

I'm using DreamWeaver and now I've tried the page on the internet, and the page gets very wide. How do I control the width and height of the page?

    
asked by anonymous 14.05.2014 / 12:22

2 answers

5

You can put the centered page and still put proportional like this:

.wrapper{
max-width: 1000px;
width: 100%;
margin: 0 auto;
}
    
14.05.2014 / 13:12
4

You can use the attributes height (height) and width (width) in pixels or percentage in body-style or CSS. But it's good practice to be in CSS.

No CSS:

body {
   height:200px; 
   width:100px;
}

and / or

 body {
    height:100%; 
    width:50%;
 }

No HTML:

<body style="height:100%; width:50%;">
    
14.05.2014 / 12:32