css problem

Discussion in 'HTML & Website Design' started by mintdanny, Mar 18, 2007.

  1. #1
    hey,

    i am just testing a few things and i have hit a problem, here it is;

    code;


    <!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=iso-8859-1" />
    <title>Untitled Document</title>
    <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    
    <body>
    <div id="1">
    test test
    </div>
    
    </body>
    </html>
    
    PHP:
    css;

    /* CSS Document */
    
    #1 {
    	width:700px;
    	height:150px;
    	background-image:url(images/dotbg.gif);
    	background-repeat:repeat-x;
    	background-position: bottom;
    	margin:auto;
    
    
    }
    
    
    PHP:
    image;

    http://www.pcinspired.com/copy/images/dotbg.gif

    in d/w the image is showing up but on a live preview it is not showing.

    Any help is appreciated

    Danny
     
    mintdanny, Mar 18, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    You should never trust DW's view.

    A class or id's token (name) may not begin with a numeral.

    cheers,

    gary
     
    kk5st, Mar 18, 2007 IP
  3. mintdanny

    mintdanny Peon

    Messages:
    587
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey,

    thanks, problem fixed

    Danny
     
    mintdanny, Mar 18, 2007 IP
  4. extensiblecascade

    extensiblecascade Active Member

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #4
    I don't think it can even contain a numeral. I remember once I had problems with that, but I don't know for sure. Just use letters and you will always be good.
     
    extensiblecascade, Mar 18, 2007 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    When all else fails, RTFM, Syntax and basic data types. Eliminates the guesswork.

    The particular item of interest reads
    cheers,

    gary
     
    kk5st, Mar 19, 2007 IP