How do I use image in css file?

0 favourites
  • 3 posts
From the Asset Store
Source File, music and art pack for Android Negotiator
  • I have image "gradient.png" located in Files folder. Can i use it in css file?

  • Basically you want to use an image that you used on Construct within your site's CSS file?

    In this case the answer is yes. After you have exported the game to HTML5, you will have all the folders/files of your game available. You can then access the folder path where the image you want is located, and use it in any line of code on your site.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Basically you want to use an image that you used on Construct within your site's CSS file?

    In this case the answer is yes. After you have exported the game to HTML5, you will have all the folders/files of your game available. You can then access the folder path where the image you want is located, and use it in any line of code on your site.

    Thanks for reply! Yeah, it will work after export to HTML5, but it doesn't work in preview. But it is very inconvenient to build game every time i want to test game with images

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)