CSS code just appearing as plain text

Discussion in 'CSS' started by tim987, Dec 28, 2008.

  1. #1
    i am using the mediawiki software and i pasted some css code i got from the official mediawiki website support page into the mediawiki skin called monobook.css, but the css code just shows up as plain text. i used the nowiki formatting tags but the css code still just shows up as plain text.
    i cleared my browsers cache and refreshed the page but the css code still shows up as plain text.

    what am i doing wrong?
     
    tim987, Dec 28, 2008 IP
  2. Ulquiorra

    Ulquiorra Peon

    Messages:
    422
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    .css files will always show up as plain text in a browser. Do you have any HTML you are applying the CSS to?
     
    Ulquiorra, Dec 29, 2008 IP
  3. vijay420

    vijay420 Guest

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    CSS file contains only codes and thats what the browser will show you. You apply the CSS to a html file and then view the HTML file to see CSS in action. Basically, CSS file contains all your style properties and all that and the HTML file contains your content, so when you apple the CSS file to HTML file, the content in HTML file will be presented as specified in the CSS file. Sorry if i confused you.
     
    vijay420, Dec 29, 2008 IP