Error during compile - Forum

Forum Navigation
You need to log in to create posts and topics.

Error during compile

The below CSS code generates an error while compiling the app.

#examheader:before{
content:'';
position:absolute;
width:100%;
height:100%;
background-image:url('../img/kankorback.svg');
}

I have already added the image in app properties>library/files.

Uploaded files:
  • You need to login to have access to uploads.

@asmat,

Are you sure the problem is generated by the CSS?
Does it disappear if you delete the background-image line?
Where are you placing exactly the CSS code?

Thanks!

Yes luishp, I am sure.

When I deleted the background-image line, it compiled without error.

I placed the CSS code in Project>Properties>Styles.

Uploaded files:
  • You need to login to have access to uploads.

@asmat I didn't knew about this but it seems VisualNEO Web parses the Project>Properties>Styles content looking for file paths. So if you use the real path to your file it will be replaced during compilation. So, try this without adding the file to the Libraries/Files tab:

#header:before{
content:'';
position:absolute;
width:100%;
height:100%;
background-image:url('C:\yourpath\book.jpg');
}

 

Thank you luishp.