by Mrnace
4 replies
anyone use it?

when I put any colours into the css I doesn't work.

I have to do the colors as html using the 'style' function.

is there a way around it?
#color #notepad
  • Profile picture of the author Mrnace
    in fact, I just realised that the css link isn't working at all.

    if linked it using this code -

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

    "stylesheet" and "stylesheet.css" are the file and folder that the css code is situated on my computer.
    {{ DiscussionBoard.errors[8383907].message }}
  • Profile picture of the author Mrnace
    Learn by doing.

    I figured it out.

    The files where in totally different folders, I simply put them in the same folder as each other.

    simple when you know how aint it. lol
    {{ DiscussionBoard.errors[8383984].message }}
  • Profile picture of the author Andrew H
    You usually have your css in a different folder, say '/css/' or '/style/'.

    When you add the css to your document you then link it to that folder (relative or absolute):

    The code you are using to add your style sheet is wrong as well. See below.

    Code:
    <link rel="stylesheet" type="text/css" href="css/stylesheet.css">
    Signature
    "You shouldn't come here and set yourself up as the resident wizard of oz."
    {{ DiscussionBoard.errors[8384010].message }}
    • Profile picture of the author DonnySharma
      Originally Posted by Andrew H View Post

      You usually have your css in a different folder, say '/css/' or '/style/'.

      When you add the css to your document you then link it to that folder (relative or absolute):

      The code you are using to add your style sheet is wrong as well. See below.

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

      This is exactly what it is. When you first start making your site it's good practice to create a folder called "css" and then the file itself called "style.css" or "stylesheet.css". It keeps everything neat and tidy.
      {{ DiscussionBoard.errors[8384091].message }}

Trending Topics