Login | Register | FAQ
Anonymous

background-image

+ Post a reply

4 posts Page 1 of 1


background-image

by Andre » Sun Jan 05, 2014 1:38 pm

I tried to apply background image for div element using external css file but id didn't work. Other CSS features like borders or background-color works.

However when using style defined in the header it worked perfectly.
What is the problem?
User avatar

Andre

  • Posts: 3
  • Joined: Sun Jan 05, 2014 1:25 pm

Re: background-image

by Andre » Sun Jan 05, 2014 4:22 pm

OK
I found a hint in a post by Living Silver of 24th June 2013.
I had to get back from "CSS" folder up to the main and back to "Images" folder so "../" sequence should be used before the "images/picturename.png" = "../images/picturename.png"
Problem solved.
User avatar

Andre

  • Posts: 3
  • Joined: Sun Jan 05, 2014 1:25 pm

Re: background-image

by XainPro » Tue Jan 07, 2014 11:58 am

self Learning = Best Learning :)
Good luck
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: background-image

by Veeramanikandan » Wed May 13, 2015 2:38 pm

select the div after give element
div{
background-image:url(folder/image name);
User avatar

Veeramanikandan

  • Posts: 20
  • Joined: Mon Sep 22, 2014 4:03 pm


+ Post a reply

Page 1 of 1