Results 1 to 2 of 2
Related
-
is there a difference between <script language="javascript> and <script type="text/javascript"> Forum: Javascript Forum
Replies: 8 -
print "Location... in firefox not working Forum: CGI Perl Forum
Replies: 1 -
input type=hidden name="to" VALUE="user@yahoo.com" Forum: HTML Forum
Replies: 1 -
how can i only make "one" link turn to another color when hovered(mouse moves to it)? Forum: CSS Forum
Replies: 5
-
01-02-2008, 06:14 PM #1
background-image "url" not working
I am trying to achieve a validated page so I have to place the background-image code into the CSS file. I have tried both examples (forget the spaces in the URL, I'm just trying to get around the min 5 post limit)
Code:td.us {background-image: url(www . example . com / images / col . gif);}
Code:td.us {background-image: url(.. / images / col . gif);}
HTML Code:<td class="us">
Any ideas?
-
01-03-2008, 12:01 AM #2
Re: background-image "url" not working
I'm using IE 7.0.5730.13 and was having trouble displaying a background image in CSS (see post above). I found a hack, of sorts, at this site that overcomes it - my bg image now displays
although 'refresh' didn't help in the first instance and there is no floated element:
HTML Code:http://www.webcredible.co.uk/user-friendly-resources/css/more-css-tricks.shtml
IE has a very strange bug where text or background images sometimes disappears from sight. These items are still actually there, and if you highlight everything on screen or hit refresh they'll often re-appear. Kind of strange, huh?
This problem mostly occurs on background images and on text next to a floated element. To remedy the problem, simply insert position: relative; into the CSS command for the disappearing element, and for some bizarre reason that'll usually fix the problem. If this doesn't work (it sometimes doesn't), assign a width to the offending element in the CSS and that should fix the problem.Code:td.us {background-image: url(../images/col.gif); position: relative;}
Interestingly, the url should readCode:../../images*
I hope this helps other ppl with the same problem
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum