Small mystery

Discussion in 'HTML & Website Design' started by Mitchell, Mar 12, 2009.

  1. #1
    The background dosn't show up, it dosn't float left and looks like code. I don't think it is following the CSS rules.

    Thanks for any help.


    <!DOCTYPE html PUBLIC
    "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" media="screen" href="white02.css" >
    <title>white02</title>

    </head>
    <center>
    <html>
    <body>

    <div> id="ccm">
    <a>bnmnbm</a>
    </div><! --end ccm -->

    </body>
    </html>
    </center>


    CSS

    body {font-family:"Trebuchet MS", Verdana, sans-serif; background: rgb(120,130,140);}

    #ccm {width: 305px; height: 150px; float: left; background: rgb(125,145,45);}
     

    Attached Files:

    Mitchell, Mar 12, 2009 IP
  2. davidcarlson

    davidcarlson Guest

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have an extra >. The id="..." should be inside the <div> tag.

    <div id="ccm">

    Dave
     
    davidcarlson, Mar 12, 2009 IP
  3. Mitchell

    Mitchell Peon

    Messages:
    204
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you. I just noticed that and was coming to take back my questions. I appreciate your response. It's hard to go to sleep if I get no reply.
     
    Mitchell, Mar 13, 2009 IP