Simple you would think.

Discussion in 'CSS' started by Mitchell, Mar 12, 2009.

  1. #1
    The CSS is not working for the elements in between the division tag. Plus part of the tag is being displayed in my Firefox web browser. Does anyone have a clue. I attached a jpg.

    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 white02.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);}
     
    Mitchell, Mar 12, 2009 IP
  2. Mitchell

    Mitchell Peon

    Messages:
    204
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Never mind I just noticed my little error.

    <div> id="ccm">

    Should be.
    <div id="ccm">
     
    Mitchell, Mar 13, 2009 IP
  3. MaxZ

    MaxZ Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Indeed, simple ^^
     
    MaxZ, Mar 13, 2009 IP