I am officially an numpty...
I've gone through Google and tried various things and still no luck.
So here's my situation. I want to create a single Div that can contain a 400px by 300px image. I want it to be workable on all browsers.
The current code allows me to center width wise, but it's always at the top of the screen.
Any help, please?
XHTML:
</head>
<body>
<div id="wrapper">Web Page Under Construction</div>
</html>
Css:
body {
margin: 0;
padding: 0;
text-align: center;
background-color:#CC0000;
color:#FFFFFF;
}
#wrapper {
position: absoloute;
width: 400px;
margin: 0 auto;
}
I've gone through Google and tried various things and still no luck.
So here's my situation. I want to create a single Div that can contain a 400px by 300px image. I want it to be workable on all browsers.
The current code allows me to center width wise, but it's always at the top of the screen.
Any help, please?
XHTML:
</head>
<body>
<div id="wrapper">Web Page Under Construction</div>
</html>
Css:
body {
margin: 0;
padding: 0;
text-align: center;
background-color:#CC0000;
color:#FFFFFF;
}
#wrapper {
position: absoloute;
width: 400px;
margin: 0 auto;
}