Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Css and html no longer linking after moving folder to server

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #185644
    ArchliteX
    Participant

    As part of an assignment in college I have to build a website and then upload it to a server.The html and css linked fine on my computer but now that I moved the folder they are in to the server they no longer link.The link in the html is <link type=”text/css” rel=”stylesheet” href=”stylesheet.css”/>.Any help would be much appreciated.

    #185646
    Paulie_D
    Member

    Sounds like a path issue.

    We can’t help much without knowing the folder structure and what the actual links look like.

    I assume you have a folder structure for CSS / Images / Js etc?

    You would need to have something like

    
    <link href=".../css/styles.css" rel="stylesheet" type="text/css">
    

    etc.

    #185650
    Anonymous
    Inactive

    The html and css linked fine on my computer but now that I moved the folder they are in to the server they no longer link.

    Did you change your paths? e.g. file:///C:/example.html to http://www.example.html

    Also, hake sure your file directory/directories are the same. If you had everything in a single file, but transferred only the files within that file, this can cause the problem.

    #185826
    daveontrak
    Participant

    <link href=”styles.css” rel=”stylesheet” type=”text/css”> always works for me, and as long as all of your files are in the root folder, you shouldn’t have a problem. This may sound like a stupid question, but is your css file actually named stylesheet.css? Could it possibly be a naming problem? Also, you said it works on your computer. Does it work using your “preview in browser” function? I may be grasping at straws here, but I’m just considering other possibilities beside filepath problems.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.