PDA

View Full Version : Changing wrapper colour on web page



johny c
09-13-2009, 12:09 AM
Hi Guys
I need some help with my web page.
I added the below code into my page to make it center on wide screens. That worked but how can I change the wrapper to black so I dont have the white bars on the side.
Thanks Johny

<html>
<head>
<title>Centering a page layout with CSS</title>
<style type="text/css">
<!--
body {
text-align: center;
min-width: 760px;
}
#wrapper {
width: 720px;
margin: 0 auto;
text-align: left;
}
-->
</style>
</head>
<body>
<div id="wrapper">

James
09-13-2009, 12:33 AM
Change the HEX colour i have highlighted in red to the colour you want.

<html>
<head>
<title>Centering a page layout with CSS</title>
<style type="text/css">
<!--
body {
text-align: center;
background-color: #000000;
min-width: 760px;
}
#wrapper {
width: 720px;
margin: 0 auto;
text-align: left;
}
-->
</style>
</head>
<body>
<div id="wrapper">

johny c
09-13-2009, 12:44 AM
Thanks James, your my Hero.
I was pasting the same in, but I was putting it in under the #wrapper {
No wonder it wouldnt work.
Cheers Johny