PDA

View Full Version : centering webpage using css..


paulj
08-08-2007, 01:49 PM
cud someone tel me how do i center my webpage using css. The problem s I've used frames, is it possible to center the frameset (page) so dat it looks same on a 17" moniter as wel as 15". One of the queries is similar but I dint quite get it.:confused:

doctordew
08-08-2007, 01:53 PM
This may or may not be what you're looking for. It'll center it though.

body { background-color: #999999; font-size:12px; font-family:Verdana, Arial, Helvetica, sans-serif;
}
div#outer { width: 80%; background-color:#FFFFFF; margin-top: 50px; margin-bottom: 50px; margin-left: auto; margin-right: auto; padding: 0px; border: thin solid #000000;
}
div#header { padding: 15px; margin: 0px; text-align: center;
}
div#nav { width: 25%; padding: 10px; margin-top: 1px; float: left;
}
div#main { margin-left: 30%; margin-top: 1px; padding: 10px;
}
div#footer { padding: 15px; margin: 0px; border-top: thin solid #000000;
}