[Need Help] Dreamweaver shows site correctly but crap when preview in browser

Discussion in 'HTML & Website Design' started by sar420, Apr 19, 2010.

  1. #1
    I am creating a new website in Dreamweaver and built all CSS divisions and HTML code manually to create a rough template. However although the site appears fine inside the 'design' view of Dreamweaver (CS4), when I preview it in the browser - firefox and IE both - it looks like there is no CSS at all. Let me explain with these screenshots:

    Desgin view in Dreamweaver
    [​IMG]

    Firefox preview
    [​IMG]

    It seems from the second screenshot that the CSS stylesheet is not attached with the html page but when I check the code the link to the stylesheet is very much there.

    Help would be much appreciated
     

    Attached Files:

    sar420, Apr 19, 2010 IP
  2. Gr33ny

    Gr33ny Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Looks like an obvious stylesheet location error to me, make sure the path to your stylesheet is specified correctly in your HTML document.
     
    Gr33ny, Apr 19, 2010 IP
  3. blacksheep666

    blacksheep666 Active Member

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #3
    i think the path is pointing to drive c on your computer.. when its on live you should change path with your domain.
     
    blacksheep666, Apr 19, 2010 IP
  4. sar420

    sar420 Notable Member

    Messages:
    3,147
    Likes Received:
    212
    Best Answers:
    0
    Trophy Points:
    230
    #4
    OK. let me try uploading on ftp and change the path to domain. Then I'll reply back
     
    sar420, Apr 19, 2010 IP
  5. Nordvind

    Nordvind Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    In Dreamweaver, if you point to the stylesheet before naming your file, it points to stylesheet location on your harddisk.
     
    Nordvind, Apr 19, 2010 IP
  6. sar420

    sar420 Notable Member

    Messages:
    3,147
    Likes Received:
    212
    Best Answers:
    0
    Trophy Points:
    230
    #6
    Thanks mate. I actually de-linked the stylesheet and then linked again. Problem solved :)

    This thread may now be closed
     
    sar420, Apr 26, 2010 IP
  7. ubservers

    ubservers Peon

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Never get confused between hard link and relative links in html or you'll get all mest up!
     
    ubservers, Apr 26, 2010 IP