The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

custom CSS fails to save at all

View previous topic View next topic Go down

Solved custom CSS fails to save at all

Post by adsmz on July 14th 2014, 7:57 am

Ok here's the low-down:
My forum's theme uses a gradient image for a background, and it tiles vertically. This is ugly on large screens, so I decided to replace it with a CSS gradient. I know the code is correct, because I've used the generator I used on other projects.
In this case, I opted to just copy-paste the whole basic CSS from the theme, and replace the background image bits with the gradient:
Spoilered for size:

Code:
body {
   font-family: Verdana,Arial,Helvetica,sans-serif;
   color: #9d9a8c;
   background-color: #131314;
   background-image: url('http://hitsk.in/t/20/30/43/i_background.jpg');
   background-attachment: fixed;
   font-size: 10px;
   height: auto;
   padding: 10px 0px;
   }
becomes
Code:
body {
   font-family: Verdana,Arial,Helvetica,sans-serif;
   color: #9d9a8c;
   /*background-color: #131314;
   background-image: url('http://hitsk.in/t/20/30/43/i_background.jpg');
   background-attachment: fixed;*/

   /*begin gradient edit*/
   background: #ff9600; /* Old browsers */
   background: -moz-linear-gradient(top,  #ff9600 0%, #ff9600 25%, #ffffff 75%, #ffffff 100%); /* FF3.6+ */
   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff9600), color-stop(25%,#ff9600), color-stop(75%,#ffffff), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
   background: -webkit-linear-gradient(top,  #ff9600 0%,#ff9600 25%,#ffffff 75%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
   background: -o-linear-gradient(top,  #ff9600 0%,#ff9600 25%,#ffffff 75%,#ffffff 100%); /* Opera 11.10+ */
   background: -ms-linear-gradient(top,  #ff9600 0%,#ff9600 25%,#ffffff 75%,#ffffff 100%); /* IE10+ */
   background: linear-gradient(to bottom,  #ff9600 0%,#ff9600 25%,#ffffff 75%,#ffffff 100%); /* W3C */
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff9600', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
    /*end gradient edit*/
  
   font-size: 10px;
   height: auto;
   padding: 10px 0px;
   }

Now, I made sure that "Deactivate basic CSS" was set to yes, and saved the stylesheet.
Clicking "Submit" sent me to a completely blank page, so I reloaded. Stylesheet showed up completely blank. Just to check, I reloaded the forum itself. No styling.

What might be causing this, and is it something I can fix?

adsmz
New Member

Posts : 2
Reputation : 1
Language : english

http://oafcompo.forumotion.com/

Back to top Go down

Solved Re: custom CSS fails to save at all

Post by SLGray on July 14th 2014, 9:37 am

All you have to do is add just the part you want to change.  The stylesheet overrides the basic CSS.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 39740
Reputation : 2680
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: custom CSS fails to save at all

Post by adsmz on July 14th 2014, 5:30 pm

thanks, that seems to have worked.

adsmz
New Member

Posts : 2
Reputation : 1
Language : english

http://oafcompo.forumotion.com/

Back to top Go down

Solved Re: custom CSS fails to save at all

Post by Derri on July 14th 2014, 5:41 pm

Topic Marked Solved & Locked


Forum Rules : : Forumotion Staff : : Appeal A Warning : : FAQ : : Tips & Tricks : : Forgotten Password/Login Issues
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

avatar
Derri
Administrator
Administrator

Male Posts : 8544
Reputation : 603
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

View previous topic View next topic Back to top


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