View Full Version : Improve my PHP Site Heading

02-04-2007, 04:34 PM
At the moment, I simply have one 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

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">

<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" />

<!-- 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;

02-04-2007, 09:45 PM
This is not related to PHP. Thread should be moved to HTML & CSS.