Messed up code?

Discussion in 'CSS' started by kathyk, Nov 28, 2008.

  1. #1
    Could someone please tell me how to bring up the title "Choral Sheet Music" up, closer to the logo at the top of the page? I have spent hours on this. I think some code is wrong. I'm assuming this isn't a style.css issue, because I've tried changing every setting in that document and the title still sits in the same position. Here is the code for that section, which is in an html page (the entire page is attached):

    <body>

    <div id="wrapper">

    <div id="header">

    </div>

    <div id="nav">

    <a href="http://www.knechtmusic.com/index.html">Home</a>

    <a href="http://www.knechtmusic.com/about.html">About Us</a>


    <table width="100%" height="20" cellpadding="0" cellspacing="0" border="0" bgcolor="">

    <tr valign="top">

    <td align="center">

    <!------------------------ Your logo goes here ---------------------------->

    <img src="images/knechtmusic_gray2.jpg" width="" height="" border="0" alt="">

    <!------------------------------------------------------------------------->

    </td>


    </tr>


    </table>

    <table width="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" bordercolor="#000000" border="0">

    <tr valign="top">

    <td bordercolor="#000000">


    <font size="5">Choral Sheet Music
     
    kathyk, Nov 28, 2008 IP
  2. Pandemix

    Pandemix Well-Known Member

    Messages:
    954
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    120
    #2
    You really should be using all CSS for this...can you post a preview of this code in action?
     
    Pandemix, Nov 28, 2008 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    I'd really have to see more of the document - can I assume you deleted some content from that? If not you've got all sorts of unneccessary unneeded elements - like the table wrapping a single image (so why do you need the table?), the empty div (is that being styled via CSS?), the unclosed NAV div (which should probably be a LIST), the deprecated FONT tag and use of presentational attributes...

    I'd really have to see all of it to say for certain, but methinks you might want to get a more recent book on the subject and start over from scratch.
     
    deathshadow, Nov 30, 2008 IP