Author Topic: Inline css background image not working in google chrome browser  (Read 27425 times)

Savera

  • Full Member
  • ***
  • Posts: 159
Inline css background image not working in google chrome browser
« on: November 21, 2011, 05:41:59 PM »
Now I have another issue, inline css background property is not working in chrome but working good in firefox . I am not able to figure out. If I add it in external css then it works.

Here is code I am using ..
Code: [Select]
<div style="height: 100px; width: 300px; background: url(/images/local/icons/star.png"></div>
Please guide ?
« Last Edit: November 22, 2011, 07:33:02 PM by Jaffery »

Jaffery

  • Administrator
  • Full Member
  • *****
  • Posts: 158
Re: Inline css background image not working in google chrome browser
« Reply #1 on: November 22, 2011, 07:33:44 PM »
I think you have a missing closing brackets. Firefox looks to be too much forgiving that it can sometimes confuse you.
Your code should be :
Code: [Select]
<div style="height: 100px; width: 300px; background: url(/images/local/icons/star.png)"></div>

axeldevara

  • Jr. Member
  • **
  • Posts: 88
Re: Inline css background image not working in google chrome browser
« Reply #2 on: November 26, 2011, 05:27:35 AM »
hi savera,
i'm using google chrome,i would like to test it.send me your link and where it should be(by message)

 

X

Do you know?

IfandBut.com helps you to keep yourself updated with latest internet business trends.
Join Now!

Database Error

Please try again. If you come back to this error screen, report the error to an administrator.
Back