thinker987
02-05-2007, 08:31 PM
At the moment, I simply have just a logo displayed in my heading.
I would like this changed to something that takes up a similar space to the current logo, but which has:
1) An eye catching background colour
2) Some free format description about my site
3) Space to add some links to other sites (how would I code linking to other sites?)
At the moment I have 2 sections of code for my heading, one is the header include file, and the other is the style.css.
Can you advise how to improve this. My current code is:
File 1: header include file
<?php
include 'config.php';
include 'libraries/db.class.php';
include 'libraries/functions.lib.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?php echo $cfg['site_name']; ?></title>
<meta name="robots" content="all" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
<meta name="description" content="<?php echo $cfg['description']; ?>" />
<meta name="keywords" content="<?php echo $cfg['keywords']; ?>" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<body>
<!-- BEGIN Header -->
<div id=header></div>
<!-- END Header -->
File 2: style.css
/*
* Header
*/
#header {
margin: 0px auto;
height: 100px;
width: 1000px;
background-color: #ccc;
border-top: 1px #000 solid;
border-bottom: 0px #000 solid;
border-left: 1px #000 solid;
border-right: 1px #000 solid;
background: url('../images/logo.jpg') 100% no-repeat;
I would like this changed to something that takes up a similar space to the current logo, but which has:
1) An eye catching background colour
2) Some free format description about my site
3) Space to add some links to other sites (how would I code linking to other sites?)
At the moment I have 2 sections of code for my heading, one is the header include file, and the other is the style.css.
Can you advise how to improve this. My current code is:
File 1: header include file
<?php
include 'config.php';
include 'libraries/db.class.php';
include 'libraries/functions.lib.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?php echo $cfg['site_name']; ?></title>
<meta name="robots" content="all" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
<meta name="description" content="<?php echo $cfg['description']; ?>" />
<meta name="keywords" content="<?php echo $cfg['keywords']; ?>" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<body>
<!-- BEGIN Header -->
<div id=header></div>
<!-- END Header -->
File 2: style.css
/*
* Header
*/
#header {
margin: 0px auto;
height: 100px;
width: 1000px;
background-color: #ccc;
border-top: 1px #000 solid;
border-bottom: 0px #000 solid;
border-left: 1px #000 solid;
border-right: 1px #000 solid;
background: url('../images/logo.jpg') 100% no-repeat;