Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Float a div on a game jam page, without CSS access?

A topic by shy created May 16, 2022 Views: 216 Replies: 1
Viewing posts 1 to 2

I want to float a narrow image div on a game jam page, so text shows up next to it. I set up a div (with a “custom-something” class name to avoid getting stripped out, and a “float:right;” style), and it looks fine in the edit page’s preview window. However, when I go to the real preview page, the style is completely removed.

The div itself shows up fine on this page, with the proper class name, it’s just the style that’s missing. That means you get a very narrow image with a huge blank space next to it, and all the text is below, which is not ideal. So is there another way to add inline images, next to a few paragraphs of text?

Also, I did try to request access to the CSS editor by contacting Itch support (I’m ticket #115155), but it’s been 12 days now without any kind of response from them at all. I’m looking for a backup option here, and hoping there’s a way to just do this very simple thing without that access going through. I can’t really wait a month or two to get access, because the game jam needs time to get approved and let people join it. I’m considering bad ideas like pre-rendering all the text in a larger image, which I’m really not happy with.

Admin

The content editor does not apply our HTML/CSS sanitization that happens before the page is rendered, so it’s possible to write markup that may work in your editing session but doesn’t apply when the final page is displayed. I recommend saving and refreshing the page often to ensure the code you are using is accepted for display. We have very strict rules about what markup can be used for security reasons.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.