Here’s some styling to make the search box of a collection sticky. Be sure to name the class of the collection “sticky-search” so that it matches the CSS below:
What eludes me at this point is the recipe for adding a css element using a AI component then updating the CSS class to apply the style to the component.
example:
I have a menu in a container
I prompted the component to create a class call “foobar”
When I inspect the container in the browser i see foobar listed as the last class in the div. cool
I then go into Glide CSS and add the class foobar and apply styles, like position: sticky background: red, etc.
There is no change to the behavior of the component on the page.
If there is a recipe for glide CSS noobs in a -“do this, then this, format: or even better a video” that would be great.
AI components are iframes, just like the web embed. Basically a window to another webpage from your main page. You cannot target styles inside an iframe using Glide CSS externally.
If you want to target the entire AI component, you do that through the Options tab for the component and assign a class name. If you want to adjust anything internally inside the AI component, that would be entirely through prompts. Styling would be through prompt, sticky would be externally via the assigned class name on the component.