Gradients - Page 2 - Post ID 289496

User 122279 Photo


Senior Advisor
12,808 posts

Bosco, what I said is, you cannot include php stuff in the page manager This also means you cannot add php files into the resources and link to them in the page manager. Eric has just said what you can do if you need php.
Ha en riktig god dag!
Inger, Norway
My new honey site, built with RFF: https://eikweb.com/horgenhonning/
Component sharing for RFF, RBB, RSD and SD: https://eikweb.com/sharing/


User 10077 Photo


Senior Advisor
1,059 posts

Bosco wrote:
I know about those settings. I made a huge mistake of reading the css documentation and then found way too many sites that help with the css, but we can't add any css inside of SD if I'm understanding that right.

Could a component be made to be able to add different styles of gradients? I've never used or learned how the CC components work. Can they also store related JS files? You are the Queen of Components, that's for sure!

I saw Bob use a technique that I have adopted. It works for extra CSS as well as Javascript.

Whatever CSS or Javascript is needed, I add an html element inside the Div (that will become the component). I set the html element to display:none. When I select the Div and create the component from it, the needed CSS and/or JS is included with it.
How-To Instructions for Coffeecup Users (tutorials, examples, and downloads)
http://usconsumernet.net/help-for-coffe … -users.php

Personal & Specialized Help for Coffeecup Users
Email me at cchelp@uscni.org or call 865-687-7698
User 2706435 Photo


Ambassador
438 posts

As an aside, it would seem you are doing some drastic stuff using so many gradient points. Make sure you are not going to extremes visually.

If it is something you want to do,and you find adding the code difficult or tedious, consider using a simple vector drawing application (many are free), and create your graphic as a .svg file type and worry about the coding later. You can then insert the graphic into your webpage, either as the graphic itself, or use the repeat styles and such. Do not worry about the size of the svg fire. Using a svg file for a background with any number of gradients will be a very small amount of kilobytes. I have a logo, that can be resized to ANY size (2mm to 20 feet...), has about 3 dozen shapes inside it, and it is only 20 kb. I use CSS to set its size inside a container.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.