Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
background image doesn't appear in IE9
Old 04-30-2012, 11:48 PM background image doesn't appear in IE9
matt w's Avatar
Extreme Talker

Posts: 153
Location: kalamazoo
Trades: 0
I can't figure out why my background image doesn't appear in IE9, in the header.
Code:
#topsection{
background-image: url(test_banner2.jpg);
height: 160px; /*Height of top section*/
background-repeat:no-repeat;
background-attachment:scroll;
background-position:left top;
}
HTML Code:
<div id="topsection">
<img src="right_float3.jpg"
height="160" width="219" alt="" id="right"  border="0px"/>
</div>
I am trying it here:
http://thesweetwatercabin.com/about_us_test.html
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
 
Register now for full access!
Old 05-01-2012, 06:06 AM Re: background image doesn't appear in IE9
lizciz's Avatar
Super Spam Talker

Posts: 845
Name: Mattias Nordahl
Location: Sweden
Trades: 0
It looks fine to me, in both Chrome and IE 9.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 05-02-2012, 09:58 PM Re: background image doesn't appear in IE9
Physicsguy's Avatar
404 - Title not found

Posts: 1,061
Name: Scott Kaye
Location: Ontario
Trades: 0
Try removing everything you don't need:

Code:
#topsection{
background:transparent url('test_banner2.jpg') no-repeat left top;
height:160px;
}
#right{float:right}
HTML Code:
<div id="topsection">
<img src="right_float3.jpg" alt="" id="right" />
</div>
But, like lizciz said, it works fine for me, in both Chrome, FF, and IE9. I don't know though, this is about as small as you can make the code.

Maybe you have compatibility mode enabled on IE? If not, try clearing the cache, sometimes that can fix the weirdest of errors.
__________________

Please login or register to view this content. Registration is FREE
Physicsguy is offline
Reply With Quote
View Public Profile Visit Physicsguy's homepage!
 
Old 05-03-2012, 12:53 PM Re: background image doesn't appear in IE9
Novice Talker

Posts: 11
Trades: 0
Minimizing code/shorthand is good practice, do not forget to reload the page. Also ensure your browser is set to view images (can happen).

Try a browser tester like netrenderer.com in the future if you feel you are going "crazy".

For the future, check out online resources like the Smashing Network or Elated to help take your coding to the next level.

All the best.
ShinymanStudio is offline
Reply With Quote
View Public Profile
 
Old 05-06-2012, 07:24 PM Re: background image doesn't appear in IE9
matt w's Avatar
Extreme Talker

Posts: 153
Location: kalamazoo
Trades: 0
Physicsguy,
I tried the whittled down code and it didn't work. But thanks!

An apology to all:
It is IE8 on Windows 7 that is not showing the images.
Also, it is my workplace's computer. I have tried loosening all security restrictions and it still won't display the header image. Other jpeg images are displayed fine.
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
Old 05-07-2012, 04:14 AM Re: background image doesn't appear in IE9
lizciz's Avatar
Super Spam Talker

Posts: 845
Name: Mattias Nordahl
Location: Sweden
Trades: 0
The only thing I can think of is, as has already been mentioned, that the page is cached. Have you tried clearing your cache, or at least updating the page? Try adding some changes to both the page itself and the css document, and see if it shows.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to background image doesn't appear in IE9
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27718 seconds with 11 queries