CSS problems

Discussion in 'Software' started by ironchef, Jun 23, 2004.

  1. ironchef

    ironchef Private E-2

    Review my script and see whats wrong... I cant get the CSS to work...


    HERES THE SITE
    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]">
    <html xmlns="[url="http://www.w3.org/1999/xhtml"]http://www.w3.org/1999/xhtml[/url]">
    <head>
    <title>Introduction</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" type="text/css" href="main.css" />
    </head>
    <body>
    <h1>Welcome to the Intro</h1>
    <hr />
    <ul class="a">
    test 1
    </ul>
    <ul class="b">
    test 2
    </ul>
    <ul class="c">
    test 3
    </ul>
    </p>
    </body>
    </html>
    
     
    [b][i]HERES THE CSS[/i][/b]
     
    body
    { 
    background-image: url("/01 - introduction_files/background.jpg");
    background-repeat: repeat
    }
    h1,h2,h3,h4,h5,h6
    {
    color: white;
    font-family: arial;
    text-align: left
    }
    hr
    {
    color: white;
    noshade: yes;
    size: 3
    }
    p
    {
    color: white;
    font-family: arial;
    font-size: 19pt
    }
    ul.a
    {
    list-style-image: url("/01 - introduction_files/bullet_1.gif")
    }
    ul.b
    {
    list-style-image: url ("/01 - introduction_files/bullet_2.gif");
    marker-offset: 5
    }
    ul.c
    {
    list-style-image: url ("/01 - introduction_files/bullet_3.gif");
    marker-offset: 10
    }
    

    :rolleyes: ~The Young IronChef
     
  2. BlackTatsu

    BlackTatsu Private E-2

    I don't know much about XML, but if CSS works the same with it as it does HTML, you need to surround all you're CSS code with:
    <STYLE TYPE="css/text">
    <!--


    code here


    -->
    </STYLE>

    Hope this helps!
     
  3. Kodo

    Kodo SNATCHSQUATCH

    negative..he has this
    <link rel="stylesheet" type="text/css" href="main.css" /> in his page... only inline css needs the style tag
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds