Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Improve the heading in my site

    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;

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Yes, my advice would be to:

    1. Not ask for design advice in the HTML/CSS forum.
    2. Don't cross-post, which is against the forum Rules and Posting Guidelines.


  •  

    Posting Permissions

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