My new website template previews in Dreamweaver 8 but doesn't work in any browser!

Discussion in 'CSS' started by libertygone, Feb 17, 2007.

  1. #1
    I am making a new template. My first ever with CSS so it's a big step for me, but i am actually doing well with it, however there is one thing that is really confusing me. I do not have any content on my template yet, i basically have an empty template and then a stylesheet that i link to in my head tags.

    My site previews just fine in the Dreamweaver "design" view but not when i push f12 to preview it or when i upload it to my server. I checked all paths and they look right, but i am still pretty confused.

    Please someone take a look at it.
    I uploaded the index to http://www.libertygone.net/new/index.html and the stylesheet is at http://www.libertygone.net/new/css.css

    Any help would rock.

    Thanks DP!! :)
     
    libertygone, Feb 17, 2007 IP
  2. mich_alex

    mich_alex Well-Known Member

    Messages:
    511
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #2
    check your index.html

    maybe error on css link or import
     
    mich_alex, Feb 17, 2007 IP
  3. libertygone

    libertygone Active Member

    Messages:
    2,625
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    90
    #3
    checked that....

    even if i have nothing but a few div containers, shouldnt it show up? it shows up in dreamweaver.
     
    libertygone, Feb 17, 2007 IP
  4. goscript

    goscript Prominent Member

    Messages:
    2,753
    Likes Received:
    306
    Best Answers:
    0
    Trophy Points:
    315
    #4
    Here's your problem:
    <link rel="stylesheet" type="text/css" href="/css.css" >

    Remove the /
    Use only <link rel="stylesheet" type="text/css" href="css.css" >

    [​IMG]

    That's why you must remove the / slash from "/css.css"
    Your path is http://www.libertygone.net/new/css.css, not http://www.libertygone.net/css.css
     
    goscript, Feb 17, 2007 IP
  5. mich_alex

    mich_alex Well-Known Member

    Messages:
    511
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #5
    no i won't show up in browser,

    try type in couple of words into the html in dreamweaver and test it again.
     
    mich_alex, Feb 17, 2007 IP
  6. libertygone

    libertygone Active Member

    Messages:
    2,625
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    90
    #6
    awesome. thanks for the help.
     
    libertygone, Feb 17, 2007 IP