Problems using CSS templates and dreamweaver?

Discussion in 'CSS' started by ourfella, Nov 22, 2009.

  1. #1
    Ok this is going to be a little hard for me to explain so please bear with me

    I made a site with a free css template in dreamweaver and everything looked great, I previewed it in my browser (firefox) and it looked exactly like I thought it would... sweet

    Then before replacing my original crapy looking site with my new CSS template site I uploaded the site to a domain name that I own (which was not in use) and it worked great apart from the fact that I had to follow the folder name on the site to get to it
    What I mean is the free template was called 'the reckoning' and when I downloaded it, it came inside a folder called the reckoning so I uploaded it to the testing domain and I had to go to
    www.mydomain.com/thereckoning
    for it to work and I didnt like that much but I thought ok, all I have to do it is change the name of the file 'the reckoning' to index or better still take the images, index.html and the style.css and put them on my other site and it will work

    But it didnt now the site only has text and some bullet points and stuff its a real mess

    it worked ok in Internet Explorer for a while then it stopped working :(

    I have deleted all of the stuff that was originally on my site so there should be nothing conflicting with my CSS file

    When I uploaded the new site I also made sure to upload the images folder aswell, Also I tried deleting the images folder and just having the images but to no avail

    Please help

    Thanks :)
     
    ourfella, Nov 22, 2009 IP
  2. vinpkl

    vinpkl Active Member

    Messages:
    899
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #2
    the css template has absolute paths or relative paths in whole html.

    like its
    <img src="www.mydomain.com/thereckoning/images/image.jpg">
    or
    <img src="thereckoning/images/image.jpg">
    or
    <img src="images/image.jpg">


    it would be also be nice if you send a link to preview.

    vineet
     
    vinpkl, Nov 22, 2009 IP
  3. ourfella

    ourfella Well-Known Member

    Messages:
    236
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    155
    #3
    Thanks for your reply the site is

    http://crabrevenge.com

    Also the template has an uneditable thing at the top of the page to call the style sheet

    <***link hr*****ef="file:///C|/Documents and Settings/Alex/Desktop/fkd/fkdmusic/reckoning/style.css" rel="stylesheet" type="text/css" media="screen***" /*****>


    **** so it shows up correctly

    Could this be causing problems also?
     
    ourfella, Nov 22, 2009 IP
  4. vinpkl

    vinpkl Active Member

    Messages:
    899
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #4
    <head href="style.css">

    <link href="file:///C|/Documents and Settings/Alex/Desktop/fkd/fkdmusic/reckoning/style.css">

    are these both stylesheet same.

    secondly "document and settings" path will not work on server.

    whats your directory structure on server.

    you have "www" folder and what all files you have in it related to template.

    vineet
     
    vinpkl, Nov 22, 2009 IP
  5. ourfella

    ourfella Well-Known Member

    Messages:
    236
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    155
    #5
    Well I have my /public_html/ file > (Crabrevenge > cgi-bin- and everything else is located in here including my images, index.html, style.css on my remote server)

    The template wont let me change the directory its grayed out
    <link href="file:///C|/Documents and Settings/Alex/Desktop/fkd/fkdmusic/reckoning/style.css">

    Yea both the style.css are the same

    thx again for your help
     
    ourfella, Nov 22, 2009 IP
  6. vinpkl

    vinpkl Active Member

    Messages:
    899
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #6
    normaly the structure is

    public_html/images
    public_html/stylesheet
    public_html/index.html
    public_html/otherpages.html

    which shows the index.html by default on typing the domain url.

    either you should do it this way or you should go into the control panel and redirect the domain to folder url.

    vineet
     
    vinpkl, Nov 22, 2009 IP
  7. AfroSamurai

    AfroSamurai Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    [​IMG]
    mate, take off the heighlited code from index.html file
    when you take that off make sure your style.css file is in root directory , if it happens to be in a folder you'll have to change it accordingly.
    for ex. if your style.css is in a folder called css thn you have to change the path as "css/style.css"
    also change this code as well man,

    body {
    background-color: #021414;
    }

    your site looks jst black can't read nything
    hope this helps
    Cheers
     
    AfroSamurai, Nov 22, 2009 IP
  8. vinpkl

    vinpkl Active Member

    Messages:
    899
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #8
    you can open

    /templates/crabtemplateGREEN.dwt

    and correct that stylesheet document and setting path

    vineet
     
    vinpkl, Nov 22, 2009 IP
  9. ourfella

    ourfella Well-Known Member

    Messages:
    236
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    155
    #9
    Thanks for your help guys

    Im trying to change the file path for the css

    I changed it on the template and made a page but its still not right

    <link href="file:style.css" rel="stylesheet" type="text/css" media="screen" />

    http://crabrevenge.com/test.html
     
    ourfella, Nov 22, 2009 IP
  10. vinpkl

    vinpkl Active Member

    Messages:
    899
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #10
    whats this

    href="file:style.css"

    file:style is name of the file .

    vineet
     
    vinpkl, Nov 22, 2009 IP
  11. ourfella

    ourfella Well-Known Member

    Messages:
    236
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    155
    #11
    Thanks man that fixed it :D

    You guys are awesome

    Cheers!
     
    ourfella, Nov 22, 2009 IP
  12. vinpkl

    vinpkl Active Member

    Messages:
    899
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #12
    gud to know that it got fixed

    vineet

     
    vinpkl, Nov 22, 2009 IP