Solved

Help: Upload image as background WebUI

  • 8 June 2021
  • 1 reply
  • 36 views

Badge

Hi, I'm trying to upload a custom image from my desktop as a background image (in WebUI) for a study project. However, I do not know how to do this, as I'm not an experienced programmer. Can someone help me, please?

icon

Best answer by mohansx 9 June 2021, 23:43

Hello @Rutger123 

 

You need to create a folder with name “resources” inside the MainProject//WebUI folder of your project. 

 

Place the image you want to use as a background in this folder, say MainProject//WebUI//resources//back.jpg.

 

Create a CSS styling sheet in this folder with the below snippet which will apply the back.jpg image as the background for your project’s WebUI. 

 

.theme-aimms .scroll-wrapper--main{

    background-image: url(back.jpg);

}

 

 

For reference: WebUI Resources — AIMMS Documentation

View original

1 reply

Userlevel 5
Badge +2

Hello @Rutger123 

 

You need to create a folder with name “resources” inside the MainProject//WebUI folder of your project. 

 

Place the image you want to use as a background in this folder, say MainProject//WebUI//resources//back.jpg.

 

Create a CSS styling sheet in this folder with the below snippet which will apply the back.jpg image as the background for your project’s WebUI. 

 

.theme-aimms .scroll-wrapper--main{

    background-image: url(back.jpg);

}

 

 

For reference: WebUI Resources — AIMMS Documentation

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator