Im following a PHP course and this is the code of the stylesheet
Expand|Select|Wrap|Line Numbers
- /*SITE COLORS :
- #1A446C - Blue grey
- #689DC1 - Light blue
- #D4E6F4 - Very light blue
- #EEE4B9 - Light tan
- #8D0D19 - Burgundy
- */
- html { height: 100%; width: 100%; }
- body { height: 100%; width: 100%; margin: 0; padding: 0; border: 0; background: #FFFFFF;
- font: 13px/15px Verdana, Arial, Helvetica, sans-serif; }
- img { border: none;}
- table, tr, td { border-collapse: collapse; vertical-align: top;
- text-align: left;
- font: 13px/15px Verdana, Arial, Helvetica, sans-serif; }
- a {color: #8D0D19;}
- #header{ height: 70px; text-align: left; background: #1A446C; color: #D4E6F4; }
- #header h1 { padding: 1em; margin: 0; }
- /*Note: IE 5 & 6 won't understand min-height */
- #main {min-height: 600px; width: 100%; background: #EEE489; padding: 2em; }
- #footer { height: 2em; padding: 1cm; text-align: center;
- background: #1A446C; color: #D4E6F4; }
- table.bordered tr th, table.bordered tr td { border: 1px solid #000000;}
What i intend to achieve.jpg
But this is the top of my page due to error.
Top of my own page due to css error.jpg
And the bott0m of my page due to error.
Bottom of my own page due to error.jpg
The MENU, is supposed to be up and not at the bottom.
Please help me, im not too proficient in CSS
Or is it a bug in the PHP?
And here are the header and footer codes. I hope they help too
HEADER
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>Zoomie Gallery: Admin</title>
- <link href="../stylesheets/main.css" media="all" rel="stylesheet" type="text/css"/>
- </head>
- <body>
- <div id="header">
- <h1>Your Zoomie Gallery: Admin</h1>
- </div>
- <div id="main">
- </div>
- </body>
- </html>
FOOTER
Expand|Select|Wrap|Line Numbers
- </div>
- <div id="footer">Copyright <?php echo date("Y", time());?>, Timothy Emmanson. Nailancer</div>
- </body>
- </html>
- <?php if(isset($database)) {$database->close_connection();} //If the database connection is there, then close it?>
Thank you very much for your help