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.
The forum of the forums
+3
SocialAcademy
SLGray
J0k3R^
7 posters

    CSS Length Limit

    J0k3R^
    J0k3R^
    Forumember


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

    Solved CSS Length Limit

    Post by J0k3R^ Mon May 19, 2014 1: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:
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: CSS Length Limit

    Post by SLGray Mon May 19, 2014 1: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.
    J0k3R^
    J0k3R^
    Forumember


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

    Solved Re: CSS Length Limit

    Post by J0k3R^ Mon May 19, 2014 2:23 am

    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
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: CSS Length Limit

    Post by SLGray Mon May 19, 2014 2: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.
    J0k3R^
    J0k3R^
    Forumember


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

    Solved Re: CSS Length Limit

    Post by J0k3R^ Mon May 19, 2014 3:06 am

    I do.. I put every new code on top
    SocialAcademy
    SocialAcademy
    Forumember


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

    Solved Re: CSS Length Limit

    Post by SocialAcademy Mon May 19, 2014 3:43 am

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


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

    Solved Re: CSS Length Limit

    Post by J0k3R^ Mon May 19, 2014 6:00 am

    But why the limit its so low? its starting removing codes around ~2400 lines :S
    Shadow
    Shadow
    Manager
    Manager


    Male Posts : 16208
    Reputation : 1832
    Language : French, English

    Solved Re: CSS Length Limit

    Post by Shadow Mon May 19, 2014 7:41 am

    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
    J0k3R^
    J0k3R^
    Forumember


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

    Solved Re: CSS Length Limit

    Post by J0k3R^ Mon May 19, 2014 8:22 am

    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
    Shadow
    Shadow
    Manager
    Manager


    Male Posts : 16208
    Reputation : 1832
    Language : French, English

    Solved Re: CSS Length Limit

    Post by Shadow Mon May 19, 2014 9:50 am

    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
    J0k3R^
    J0k3R^
    Forumember


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

    Solved Re: CSS Length Limit

    Post by J0k3R^ Mon May 19, 2014 11:21 am

    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
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: CSS Length Limit

    Post by SLGray Mon May 19, 2014 12: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.
    Neptune-
    Neptune-
    Forumember


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

    Solved Re: CSS Length Limit

    Post by Neptune- Mon May 19, 2014 11:01 pm

    Hello ^^

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

    Current limit is 216 so 65536 characters
    J0k3R^
    J0k3R^
    Forumember


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

    Solved Re: CSS Length Limit

    Post by J0k3R^ Mon May 19, 2014 11:14 pm

    thats right SLGray! Smile
    neptune, can i check how many characters i got?
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: CSS Length Limit

    Post by SLGray Mon May 19, 2014 11:56 pm

    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.
    Neptune-
    Neptune-
    Forumember


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

    Solved Re: CSS Length Limit

    Post by Neptune- Tue May 20, 2014 2: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
    J0k3R^
    J0k3R^
    Forumember


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

    Solved Re: CSS Length Limit

    Post by J0k3R^ Tue May 20, 2014 5:42 am

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


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: CSS Length Limit

    Post by TheCrow Tue May 20, 2014 9:23 am

    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?



    CSS Length Limit Thecro10
     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
    Derri
    Helper
    Helper


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

    Solved Re: CSS Length Limit

    Post by Derri Tue May 20, 2014 9:33 am

    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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: CSS Length Limit

    Post by SLGray Tue May 20, 2014 3: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.

      Current date/time is Sun Sep 22, 2024 10:26 pm