Page 1 of 1

[SOLVED] Style Sheet will not retain changes

Posted: Thu Aug 02, 2012 5:13 pm
by RyanC
For some reason my first thread got deleted and not moved?

I have a very long style sheet that will not retain the changes I make. There is a certain point in the sheet where it just stops, it doesn't finish the code. Whatever I put after this point will work when I hit "apply" but when I hit "save", it disappears:

Code: Select all

#catControls {
    margin-top: 125px;
    margin-left: 50px;
}

.control {
  display:block;
  wi
but this is how it's supposed to be:

Code: Select all

#catControls {
    margin-top: 125px;
    margin-left: 50px;
}

.control {
  display:block;
  width:39px;
  height:263px;
  height:65px;
  text-indent:-10000px;
  position: absolute;
  cursor: pointer;
}

#leftControl {
  float: left;
  float: right;
  top:0;
  margin-top: -57px;
  margin-left:930px;
  background:transparent url(images/control_left.jpg) no-repeat 0 0;
}
 
#rightControl {
  float: right;
  top:0;
  margin-top: -57px;
  margin-left: 965px;
  background:transparent url(images/control_right.jpg) no-repeat 0 0;
}

.slide img {
  float:right;
  margin:0 15px;
}
Any idea why this happens? Is there a character limit in a style sheet?

Re: Style Sheet will not retain changes

Posted: Thu Aug 02, 2012 5:33 pm
by uniqu3
So you possibly have soooooo long stylesheet that it exceeded character limit? Did you try splitting it in two?

Re: Style Sheet will not retain changes

Posted: Thu Aug 02, 2012 5:37 pm
by Dr.CSS
Could be, I saw another thread about this problem before, how long is the style sheet, and each space between the CSS calls counts as more text/lines...

#div {
some:style
}

#div {
some: more style
}

Should be...

#div {
some:style
}
#div {
some: more style
}

Re: Style Sheet will not retain changes

Posted: Thu Aug 02, 2012 5:48 pm
by RyanC
Thanks guys, I just wanted to make sure that was it. It is very long, but it's for a specific purpose and I've already got like 5 style sheets going on and it's too much to keep track of. So I'm going to delete all the extra spaces and see what happens.

Re: Style Sheet will not retain changes

Posted: Thu Aug 02, 2012 6:35 pm
by RyanC
ok that did it.