|
Hi all,
I've found a tutorial to center web pages using an external css style sheet.
I cant seem to get it to work though, can anyone spot what I'm doing wrong?
The external stylesheet is this:
/* stylesheet to centre a page */
div#container {
width: 725px;
margin: auto;
}
I have this saved as stylesheet.css in my public_html folder on the remote server.(same location as the web pages)
Within the head tags of my web page I have:
<link href="/stylesheet.css" rel="stylesheet" type="text/css" />
After the first body tag I have:
<div id="container">
And before the second body tag I have:
</div>
Is all this correct?
Thanks alot.
Last edited by Iotrez : 05-16-2008 at 03:23 PM.
|