CSS Length Limit
+3
SocialAcademy
SLGray
J0k3R^
7 posters
Page 1 of 1
CSS Length Limit
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
Re: CSS Length Limit
There is a limit. I believe it is over 6,000. Try to make a code one line.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: CSS Length Limit
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
Re: CSS Length Limit
Have you tried adding it to the top?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: CSS Length Limit
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
Thanks in advance
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
Thanks in advance
Shadow- Manager
- Posts : 16217
Reputation : 1831
Language : French, English
Re: CSS Length Limit
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
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
Re: CSS Length Limit
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
You can send me the information via private message if you want + the link of the topic.
Thanks
Shadow- Manager
- Posts : 16217
Reputation : 1831
Language : French, English
Re: CSS Length Limit
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..
Re: CSS Length Limit
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?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: CSS Length Limit
Hello ^^
The limit with CSS is not in lines but in characters.
Current limit is 216 so 65536 characters
The limit with CSS is not in lines but in characters.
Current limit is 216 so 65536 characters
Re: CSS Length Limit
Copy all of your CSS, and minimize it using this: http://www.refresh-sf.com/yui/
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: CSS Length Limit
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
Re: CSS Length Limit
@SLGray what this exactly do? remove spaces and empty lines? :S
@Neptune the file size is 120kb
@Neptune the file size is 120kb
Re: CSS Length Limit
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?
Re: CSS Length Limit
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.
If you go above this then anything else would be automatically deleted.
Derri- Helper
- Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom
Re: CSS Length Limit
Since this is marked solved, it will be archived.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Get Rid of the CSS Length Limit
» is there a way to limit Username length
» url length
» Limit post length
» How to limit the length of usename when register?
» is there a way to limit Username length
» url length
» Limit post length
» How to limit the length of usename when register?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum