How can I create a Cascading Style Sheet?

Ive looked OVER 1 million tutorials..I know that but its just that,I want something like this: Can someone explain step by step..because those tutorials DONT teach me anything Thanks.

Public Comments

  1. To create a CSS you can use a normal text editor like Notepad. When you save the file remember to put .css at the end of the file name, like "style.css". To use this file in a website you need to link it to the .html file. You can do that with this code. <link href="(path to your .css file)" rel="stylesheet" type="text/css"> Remember to put the code above inside your head tag.
  2. go to www.w3schools.com, this the best web tutorial ever.
  3. The basic idea of css is separation of style from content that saves (minimises) repetition in the web page and realizes one of the important informing principles in programming: one change accomplishes all changes. So, to change the style of the text in the paragraph text, the only change required is the definition of the class .pt. style.css file: (a text file) .ph {   font : 20px arial;   color: red;   text-decoration:underline; } .pt {   font : 12 px arial;   color : slategray; } your web page (an .htm file) <head>   <link href="style.css" rel="stylesheet" type="text/css"> </head> <body>   <p class="ph">paragraph title</p>   <p class="pt">some descriptive text</p>   <p class="pt">more descriptive text</p>   <p class="ph">another paragraph title</p>   <p class="pt">yet more descriptive text</p> </body> The inclusion of class="pt" inside the <p> tag invokes the style as defined in the .css file. The .css file is connected to the web page by the use of the <link> tag in the head section. Hope this helps.
  4. http://www.lissaexplains.com is really good with CSS for beginners
Powered by Yahoo! Answers