CSS What am I doing wrong?

by zoro
8 replies
  • WEB DESIGN
  • |
Hi,

Hoping someone can help as this CSS thing is driving nuts! I'm new to all this.

Here is my problem:

I have 2 totally different html websites and I want to FTP (I use Filezilla) them up into my root directory. The first website works ok but when I try to FTP the other website a notice pops up saying there is already a .. style css and asks if I want to overight it. Ofcourse I don't because it belongs to the second website, so I tried to rename it but this does not to work either? When I ftp the second website it takes on the style and colors of the first?

Hope this explination makes sense. I know it will just be something simple .. but what. Hope you can assist.
#css #ftp #html #wrong
  • Profile picture of the author Karen Blundell
    you cannot have 2 index.html and 2 style.css in the same directory. you need to create a sub-directory for your second website or a sub-domain depending on what your hosting account allows if you don't want to change the names of the files or
    try renaming the files before you FTP them
    Signature
    ---------------
    {{ DiscussionBoard.errors[389463].message }}
    • Profile picture of the author zoro
      Originally Posted by Karen Blundell View Post

      you cannot have 2 index.html and 2 style.css in the same directory. you need to create a sub-directory for your second website or a sub-domain depending on what your hosting account allows if you don't want to change the names of the files or
      try renaming the files before you FTP them
      Thanks Karen,

      I have created a sub-directory and uploaded all files into same, but website url just shows an error page?

      John
      {{ DiscussionBoard.errors[389562].message }}
      • Profile picture of the author JamesFrancisIM
        If you've created the sub-directory, then you'd need to type www[dot]yourdomain[dot]com/subdirectory to get to the second website, providing that both the second index.html and style.css are in that sub-directory.

        Hope that's helped.

        If not, what error are you getting?

        - James.
        {{ DiscussionBoard.errors[389698].message }}
        • Profile picture of the author zoro
          Originally Posted by JamesFrancisIM View Post

          If you've created the sub-directory, then you'd need to type www[dot]yourdomain[dot]com/subdirectory to get to the second website, providing that both the second index.html and style.css are in that sub-directory.

          Hope that's helped.

          If not, what error are you getting?

          - James.
          Thanks James,

          Sorry but I still can't get it to work. I have created a sub-directory, uploaded all files into it, but when I type my domain with the /sub.html into the browser, I just get a page showing the index and all the files ?
          I am sure it is just something simple I'm missing, but what?

          John
          {{ DiscussionBoard.errors[389938].message }}
  • Profile picture of the author absbica
    are you able to provide us a link?

    try this

    www.yoursite.com/subdirectory/index.html
    {{ DiscussionBoard.errors[390612].message }}
  • Profile picture of the author GB2008
    Looking at the original question... if you want to use a different css file for different pages, then you need to change the stylesheet reference in your html file - usually between the <head></head> tags - that's why you were only seeing the style of the first website.
    Signature
    {{ DiscussionBoard.errors[390623].message }}
  • Profile picture of the author zoro
    Thanks absbica, your suggestion did the trick.

    Thanks too for everyone's help.

    John
    {{ DiscussionBoard.errors[393040].message }}
  • Profile picture of the author Bradzz
    A web site is a collection of information about a particular topic or subject. Designing a web site is defined as the arrangement and creation of web pages that in turn make up a web site. A web page consists of information for which the web site is developed. A web site might be compared to a book, where each page of the book is a web page.

    _________________________________________

    Bradzz
    {{ DiscussionBoard.errors[393570].message }}

Trending Topics