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 Â
+3
SocialAcademy
SLGray
J0k3R^
7 posters
CSS Length Limit
J0k3R^- Forumember
- Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t
- Post n°1
CSS Length Limit
SLGray- Administrator
- Posts : 51498
Reputation : 3523
Language : English
Location : United States
- Post n°2
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.
J0k3R^- Forumember
- Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t
- Post n°3
Re: CSS Length Limit
6000 lines is okey, i got around 2500 but still got this problem :S
Last edited by J0k3R^ on Mon May 19, 2014 6:01 am; edited 1 time in total
SLGray- Administrator
- Posts : 51498
Reputation : 3523
Language : English
Location : United States
- Post n°4
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.
J0k3R^- Forumember
- Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t
- Post n°5
Re: CSS Length Limit
I do.. I put every new code on top
SocialAcademy- Forumember
- Posts : 145
Reputation : 11
Language : JavaScript, CSS, Html, JQuery, C#, C++, Php, Python
Location : Forumotion
- Post n°6
Re: CSS Length Limit
you can add CSS <style></style> tag in overall_header
J0k3R^- Forumember
- Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t
- Post n°7
Re: CSS Length Limit
But why the limit its so low? its starting removing codes around ~2400 lines :S
Shadow- Manager
- Posts : 16208
Reputation : 1832
Language : French, English
- Post n°8
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
J0k3R^- Forumember
- Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t
- Post n°9
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
Shadow- Manager
- Posts : 16208
Reputation : 1832
Language : French, English
- Post n°10
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
J0k3R^- Forumember
- Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t
- Post n°11
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..
SLGray- Administrator
- Posts : 51498
Reputation : 3523
Language : English
Location : United States
- Post n°12
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.
Neptune-- Forumember
- Posts : 496
Reputation : 104
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : Scotland, UK
- Post n°13
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
J0k3R^- Forumember
- Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t
- Post n°14
Re: CSS Length Limit
thats right SLGray!
neptune, can i check how many characters i got?
neptune, can i check how many characters i got?
SLGray- Administrator
- Posts : 51498
Reputation : 3523
Language : English
Location : United States
- Post n°15
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.
Neptune-- Forumember
- Posts : 496
Reputation : 104
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : Scotland, UK
- Post n°16
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
J0k3R^- Forumember
- Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t
- Post n°17
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
TheCrow- Manager
- Posts : 6916
Reputation : 795
Language : Greek, English
- Post n°18
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?
 Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Derri- Helper
- Posts : 8711
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom
- Post n°19
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.
SLGray- Administrator
- Posts : 51498
Reputation : 3523
Language : English
Location : United States
- Post n°20
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.