The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

CSS Length Limit

+3
SocialAcademy
SLGray
J0k3R^
7 posters

Go down

Solved CSS Length Limit

Post by J0k3R^ May 19th 2014, 9:16 am

Hi, today i was going to add some codes to my css but when i 'Publish' it crashes and when i reload the page the last codes from the buttom are getting removed. So, my question is: does css got length limit? i got around 2500 lines and i have this problem. If yes, what can i do in this situation? Thanks  :rose:
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: CSS Length Limit

Post by SLGray May 19th 2014, 9:38 am

There is a limit. I believe it is over 6,000.  Try to make a code one line.


CSS Length Limit Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: CSS Length Limit

Post by J0k3R^ May 19th 2014, 10:23 am

6000 lines is okey, i got around 2500 but still got this problem :S


Last edited by J0k3R^ on May 19th 2014, 2:01 pm; edited 1 time in total
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: CSS Length Limit

Post by SLGray May 19th 2014, 10:49 am

Have you tried adding it to the top?


CSS Length Limit Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: CSS Length Limit

Post by J0k3R^ May 19th 2014, 11:06 am

I do.. I put every new code on top
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: CSS Length Limit

Post by SocialAcademy May 19th 2014, 11:43 am

you can add CSS <style></style> tag in overall_header
SocialAcademy
SocialAcademy
Forumember

Male Posts : 145
Reputation : 11
Language : JavaScript, CSS, Html, JQuery, C#, C++, Php, Python
Location : Forumotion

http://www.socialacademy.biz

Back to top Go down

Solved Re: CSS Length Limit

Post by J0k3R^ May 19th 2014, 2:00 pm

But why the limit its so low? its starting removing codes around ~2400 lines :S
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: CSS Length Limit

Post by Shadow May 19th 2014, 3:41 pm

Hello

What is the message you get when to try to send your codes?

If you can provide a screenshot + the CSS (with the hidden option) it would be great Smile

Thanks in advance
Shadow
Shadow
Manager
Manager

Male Posts : 16217
Reputation : 1831
Language : French, English

Back to top Go down

Solved Re: CSS Length Limit

Post by J0k3R^ May 19th 2014, 4:22 pm

I dont get any message. I will try to explain u with full details.

Today i tried to add some codes (simple, just for some buttons designs, correct syntax) but when i press 'publish' the page is getting blank (complete white) and the 'reload' icon on my browser is "ready" like the page is loaded normally (when the css is working fine, it takes around 10 seconds to accept the new codes i put, but in this situation the page reloads immediately). I press Refresh and i see my css without the new codes and the last lines from the bottom deleted.

Im fine for the moment because i deleted some unused codes but when i will reach again the.."limit" it will do the same i guess. what should i do or whats the problem?? :S
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: CSS Length Limit

Post by Shadow May 19th 2014, 5:50 pm

Ok. Thanks for your feedback. Could you please send me the Code you try to add on your CSS?

You can send me the information via private message if you want + the link of the topic.

Thanks
Shadow
Shadow
Manager
Manager

Male Posts : 16217
Reputation : 1831
Language : French, English

Back to top Go down

Solved Re: CSS Length Limit

Post by J0k3R^ May 19th 2014, 7:21 pm

The problem wasnt the codes. I deleted some other unused css and now its working good. But Im aftaid this problem will happen again if i add many lines..
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: CSS Length Limit

Post by SLGray May 19th 2014, 8:56 pm

So when you tried to add more codes to your stylesheet, which was already on line 2,400, the new code was not being saved?


CSS Length Limit Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: CSS Length Limit

Post by Neptune- May 20th 2014, 7:01 am

Hello ^^

The limit with CSS is not in lines but in characters.

Current limit is 216 so 65536 characters
Neptune-
Neptune-
Forumember

Female Posts : 496
Reputation : 104
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : Scotland, UK

https://www.galaxie-series.net/

Back to top Go down

Solved Re: CSS Length Limit

Post by J0k3R^ May 20th 2014, 7:14 am

thats right SLGray! Smile
neptune, can i check how many characters i got?
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: CSS Length Limit

Post by SLGray May 20th 2014, 7:56 am

Copy all of your CSS, and minimize it using this: http://www.refresh-sf.com/yui/


CSS Length Limit Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: CSS Length Limit

Post by Neptune- May 20th 2014, 10:06 am

J0k3R^ wrote:
neptune, can i check how many characters i got?

Just copy/paste all your css into Notepad, save and check the file size
Neptune-
Neptune-
Forumember

Female Posts : 496
Reputation : 104
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : Scotland, UK

https://www.galaxie-series.net/

Back to top Go down

Solved Re: CSS Length Limit

Post by J0k3R^ May 20th 2014, 1:42 pm

@SLGray what this exactly do? remove spaces and empty lines? :S
@Neptune the file size is 120kb Razz
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: CSS Length Limit

Post by TheCrow May 20th 2014, 5:23 pm

The Css has a limit. I got that a while ago trying to add some codes but now i only add the once that cant be added in the templates. It is easier to add them in templates and a lot more fast. But i have the same question. Why have a limit? Is this useful to something?
TheCrow
TheCrow
Manager
Manager

Male Posts : 6897
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: CSS Length Limit

Post by Derri May 20th 2014, 5:33 pm

I believe the confirmed limit (I've asked other support mods across all FM forums, even those in other languages) seems to be  65,000 characters. 

If you go above this then anything else would be automatically deleted.
Derri
Derri
Helper
Helper

Male Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

Solved Re: CSS Length Limit

Post by SLGray May 20th 2014, 11:05 pm

Since this is marked solved, it will be archived.


CSS Length Limit Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum