1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

CSS CSS not working with index

Discussion in 'Web Development' started by mexkiwi, Oct 3, 2007.

  1. mexkiwi

    mexkiwi New Member

    Hi,

    I'm a newb at all this but my css is not showing up at all. It will work when i preview the index in dreamweaver8 using ie6 but will not work after i upload the files to my server. please help. also site looks good on ie6 but things looks all out of place in firefox and other web browser. please help me!!!!!!!!!!!!

    Thanks.
    :D
     
  2. elegos

    elegos New Member

    is it a separate style sheet document (*.css file), or is it embedded in the page (<style> TAG)?

    In the first case, try to write this line of code between the HEAD and the /HEAD tags:

    Code:
    <link href="YOUR_FILE_HERE.css" rel="stylesheet" type="text/css" />
     
  3. mexkiwi

    mexkiwi New Member

    i have that in the head and it will preview correctly but when the actucal file is put to the server all the css and source files are no show. I can't figure out why it does that?
     
  4. elegos

    elegos New Member

    maybe you've got the wrong path...

    i.e.
    Code:
    <link href="C:/WebDesign/YourSite/style.css" rel="stylesheet" type="text/css" />
    try with the absolute path:
    Code:
    <link href="style.css" rel="stylesheet" type="text/css" />
    if it's in the same folder, or
    Code:
    <link href="css_folder/style.css" rel="stylesheet" type="text/css" />
     
  5. unixanalyst

    unixanalyst New Member

    Have you uploaded the stylesheet?
     
  6. mexkiwi

    mexkiwi New Member

    fixed it thanks guys
     
  7. unixanalyst

    unixanalyst New Member

    What was it?
     
  8. mwest

    mwest New Member

    Same Problem

    I am having the same problem. My HTML is below. Any help would be appreciated.

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>index.html</title>
    <link href="_css/thrColElsHdr.css" rel="stylesheet" type="text/css" />
     
  9. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    The MIME character set attribute for UTF-8 is UTF-8. Character sets are case-insensitive.
    put your css file in the root directory with your html files.
    underscore => _ what are you thinking?

    try this <link href="thrcolelshdr.css" rel="stylesheet" type="text/css" />