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?
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?
You can put the centered page and still put proportional like this:
.wrapper{
max-width: 1000px;
width: 100%;
margin: 0 auto;
}
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%;">