Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Thanked 0 Times in 0 Posts

    Improve my PHP Site Heading

    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;

  2. #2
    Regular Coder meth's Avatar
    Join Date
    Jan 2003
    Thanked 9 Times in 9 Posts
    This is not related to PHP. Thread should be moved to HTML & CSS.
    I do Web Design, Brisbane based.
    More time spent in PHP/MySQL Web Development.
    And Search Engine Optimisation takes up the rest of it.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts