Hi everyone,
I'm using Gantry 5 and I just saw we could had "custom HTML" in the layout :

But what about CSS ? how can I apply some custom CSS to this HTML code ?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Hi everyone,
I'm using Gantry 5 and I just saw we could had "custom HTML" in the layout :

But what about CSS ? how can I apply some custom CSS to this HTML code ?
Try using style="..." in your tag or a <style> tag, before your html command. e.g. <embed style="height=350px;display:block;overflow:hidden;position: absolute;transform: scale(.5,.7);transform-origin: left top 0;" src="..." >
Hello @oscon,
Thanks you for your reply. I actually managed to find how to do it.
For adding CSS code to a page we need to go in "Page setting", go down and click on "+" add CSS icon. Then we can add some CSS with a class to target the part of code we want to affect.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 82 | 11 hours ago | ||
| 1 | 55 | 16 hours ago | ||
| 0 | 45 | 1 day ago | ||
| 6 | 348 | 5 days ago | ||
| 3 | 43 | 5 days ago |