Forums / General Questions / Styleboxes are all in ONE line??

Styleboxes are all in ONE line??

Locked

Views: 553

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Jun 2010, 8:15 PM
#1
creation avatar

creation

New Zenner

Join Date:
May 2010
Location:
South Coast of NSW Australia
Posts:
57
Plugin Contributions:
0

Styleboxes are all in ONE line??

Sorry if you have seen this request before as I posted it as an addition to another thread without any response ... but as I could not find any references anywhere.. here is a single post.

When I go to edit a stylebox, all the script is in one line without any breaks etc. This makes it almost impossible to edit. It must be something simple that this dummy has done??

John

3 Jun 2010, 8:39 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Styleboxes are all in ONE line??

What do you mean by "stylebox"?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

4 Jun 2010, 4:14 AM
#3
creation avatar

creation

New Zenner

Join Date:
May 2010
Location:
South Coast of NSW Australia
Posts:
57
Plugin Contributions:
0

Re: Styleboxes are all in ONE line??

It must have too early when I wrote that ... I meant 'stylesheet'

4 Jun 2010, 5:10 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Styleboxes are all in ONE line??

That may happen if you have a "minify" script working on your site. This strips all "extraneous" elements like line breaks and comments from the stylesheet - good for speed if you have a problem with that, but you have to keep an uncompressed copy somewhere so you can actually work on it. I don't know if minify alters the originals or just serves a compressed copy.

4 Jun 2010, 7:02 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Styleboxes are all in ONE line??

For javascript minification scripts can dramatically shorten the code by globally substituting short variable names for long ones, but that's not really an option for stylesheets where most everything is either externally defined (the styling rules) or just linked to something external (tag, id and class names). So there's not much that they can do other than the whitepsace, shortening of color codes and dropping unneeded final semi-colons. So javascript can do more, and because of code layout typically introduces a lot more whitespace - which is why it's more popular for javascript.

In the absence of any other information about where your template came from, this does sound like the most likely explanation. Another possibility might be an editor, transfer or encoding problem resulting in the line feed characters being lost from the file or ineffective on your server.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)