[SOLVED] Style Sheet will not retain changes

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
RyanC
Forum Members
Forum Members
Posts: 97
Joined: Fri Aug 05, 2011 9:02 pm

[SOLVED] Style Sheet will not retain changes

Post 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?
Last edited by RyanC on Thu Aug 02, 2012 6:35 pm, edited 1 time in total.
uniqu3

Re: Style Sheet will not retain changes

Post by uniqu3 »

So you possibly have soooooo long stylesheet that it exceeded character limit? Did you try splitting it in two?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Style Sheet will not retain changes

Post 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
}
RyanC
Forum Members
Forum Members
Posts: 97
Joined: Fri Aug 05, 2011 9:02 pm

Re: Style Sheet will not retain changes

Post 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.
RyanC
Forum Members
Forum Members
Posts: 97
Joined: Fri Aug 05, 2011 9:02 pm

Re: Style Sheet will not retain changes

Post by RyanC »

ok that did it.
Post Reply

Return to “Layout and Design (CSS & HTML)”