登录 | 注册 | FAQ
Anonymous

background-image

+ 发表回复

4 篇帖子 分页: 1 / 1


background-image

Andre » 周日 1月 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?
头像

Andre

  • 帖子: 3
  • 注册: 周日 1月 05, 2014 1:25 pm

Re: background-image

Andre » 周日 1月 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.
头像

Andre

  • 帖子: 3
  • 注册: 周日 1月 05, 2014 1:25 pm

Re: background-image

XainPro » 周二 1月 07, 2014 11:58 am

self Learning = Best Learning :)
Good luck
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: background-image

Veeramanikandan » 周三 5月 13, 2015 2:38 pm

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

Veeramanikandan

  • 帖子: 20
  • 注册: 周一 9月 22, 2014 4:03 pm


+ 发表回复

分页: 1 / 1