Styles become inactive when I link the sheet?

Discussion in 'CSS' started by Disco_stu, Nov 28, 2007.

  1. #1
    So I've been using the style sheet in the header as I was making my website, and now I want to move them in to a .css file and link to them. The problem is, that certain style elements become inactive and I don't know why.

    This line:

    body {
    	background-image: url(http://www.MYSITE.com/files/img/nebula-background.jpg);
    }
    Code (markup):
    Wont work (even though the link is absolute and works fine when in the header) when I link to it.

    And on a different page:

    #container {
    	width: 760px;
    	width: 780px;
    	width: 600px;
    	border: 1px solid gray;
    	margin-left: auto;
    	margin-right: auto;
    	margin-top: 10px;
    	margin-bottom: 10px;
    	padding: 5px;
    		}
    Code (markup):
    doesn't work.

    Again, both these work fine in the header, but when I copy and paste them in to a .css file these two seem to stop working, while everything else is just fine.

    Anyone know what I'm doing wrong?

    Thanks
     
    Disco_stu, Nov 28, 2007 IP
  2. babyboy808

    babyboy808 Well-Known Member

    Messages:
    491
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #2
    PM me and I'll help you
     
    babyboy808, Nov 28, 2007 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    URL? Live copy? Without the full code we can't be a whole lot of help.
     
    deathshadow, Nov 28, 2007 IP