CSS imagepath

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

CSS imagepath

#1

Postby HarryDeBoer » Mon Jan 27, 2014 1:42 pm

Hi, I have a css class
.error {
color: #D8000C;
background-color: #FFBABA;
/*background-image: url('error.png');*/
}

what is in the above code the correct syntax for the background image (images are in ufs/images)?
0 x
Kind regards,

Harry

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Jan 27, 2014 5:08 pm

URLs will be relative to the URL of the main form i.e. domain/ufs so it should be:

Code: Select all

background-image: url('images/error.png');
0 x


Who is online

Users browsing this forum: No registered users and 2 guests