Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

HTML & CSS custom <span class> not working.

A topic by Robert Linsalato Jr. created Mar 16, 2023 Views: 322 Replies: 5
Viewing posts 1 to 2
(1 edit)

I have my profile page set up with ‘basic’ CSS code, and I wanted to make the “Hello Hello!” text at the top be like ‘rainbow text’, think this (the response to the question). I tried to use the “<span class=” function to make only the hello text rainbow. Long story short, it does not work.

This is the HTML code that I’m using (ignoring the gifs):

<p><strong><span class="rainbow">&nbsp;Hello Hello!&nbsp;</span></strong><\p>

and this is the CSS code for my profile page (using red as a test to make sure span works):

.rainbow{color: red;}

I have tried to remove the “&nbsp” and it does nothing.

So the question is: Am I missing something or is <span class=> not accessible in itch?

did you read this?
https://itch.io/docs/creators/css-guide

Yep, I tried to use #custom but it also didn’t work.

But did you contact support so that they enable you to modify the CSS?

By default, it is locked.

That's the first thing the link I left you says. And I ask it again, because you do not clarify that you have requested and have been given access to modify the CSS.

Yes, I have css modification unlocked.

The problem that I have is that the code I tried to use is in my initial post was not working, and I do not understand why.

The documentation says that your classes should start with "custom-"

I mention it because you say you used #custom, but the documentation says that the class must start with "custom-" and I don't see that in the code in the first link.

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