notepad++ color help

by 4 replies
5
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?
#programming #color #notepad
  • 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.
  • 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
  • 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">
    • [1] reply

    • 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.

Next Topics on Trending Feed