CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 12th, 2008, 04:25 PM
timcorley timcorley is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2008
Posts: 3 timcorley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 38 sec
Reputation Power: 0
Disappearing image in IE

This is the first page I've made in CSS and am just putting together the basic structure. In firefox, everything works as it should. I used a .png with transparency for a header element(picture of buildings) and floated the transparent nav-bar over that. Pictures below show firefox and IE results. Notice how the image doesn't even show up at all in IE. I cannot figure this out, it's probably something I just don't know about yet but it's driving me freakin crazy

Firefox: (how it should look-space between H and t)
h ttp://i3.photobucket.com/albums/y100/timcorley/firefox.jpg

IE: how it looks in IE
h ttp://i3.photobucket.com/albums/y100/timcorley/IE.jpg

My code might have some issues as I've never really done this before, but I appreciate the help.

CSS:

Code:
html, body {
	background:#1d1d1d;
	margin: 0;
	padding: 0;
}

h1,h2 {
	margin: 0;
	padding: 0;
}


#page-container {
	width:860px;
	margin:auto;
	
}

#branding {
	background: url(../images/luxeheaderbgrnd.png) repeat-x;
	height: 117px;
}
#branding a{
	text-indent:-9999px;
	display:block;
	width: 200px;
}
#branding h1 a{
	height:113px;
	background:url(../images/logo.png) no-repeat;
}

#header {
	background: url(../images/h2bgrnd.gif) repeat-x;
	height: 247px;
}


#header h2{
	position:relative;
	width:465px;
	height:301px;
	float: right;
	margin-top: -60px;
	margin-left: 200px;
	margin-right: 20px;
	z-index:2;

}
	
#main-nav {
	background:url(..images/navbartrans.png);
	position:relative;
	height:53px;
	width:860px;
	float:left;
	margin-top:-52px;
	z-index:3;
}

#features h1 {
	background: url(../images/features.gif);
	width:860px;
	height:248px;
}
#footer {
	background: yellow;
	height:20px;
}


Reply With Quote
  #2  
Old October 12th, 2008, 04:36 PM
8?^7d1X 8?^7d1X is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 181 8?^7d1X Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 2 h 31 m 8 sec
Reputation Power: 0
Which IE? Transparency only works in modern browsers so that leaves IE out. It was added in IE7 (but that's not a modern browser).

Reply With Quote
  #3  
Old October 12th, 2008, 04:53 PM
timcorley timcorley is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2008
Posts: 3 timcorley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 38 sec
Reputation Power: 0
Quote:
Originally Posted by 8?^7d1X
Which IE? Transparency only works in modern browsers so that leaves IE out. It was added in IE7 (but that's not a modern browser).


I pulled that screenshot from IE7...but, the nav-bar is also a transparent .png and that's showing up in IE. Below are larger images of the screenshots - I don't have anything hosted at the moment, so flickr it is. Hopefully it works.

IE:
farm4.static.flickr.com/3136/2935054169_a0774c3476_o.jpg

Firefox:
farm4.static.flickr.com/3072/2935053259_9bc0695487_o.jpg


thanks!
tim.

Reply With Quote
  #4  
Old October 12th, 2008, 06:55 PM
Arem's Avatar
Arem Arem is offline
Classical Computing
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2008
Location: Melbourne, Australia
Posts: 829 Arem User rank is Second Lieutenant (5000 - 10000 Reputation Level)Arem User rank is Second Lieutenant (5000 - 10000 Reputation Level)Arem User rank is Second Lieutenant (5000 - 10000 Reputation Level)Arem User rank is Second Lieutenant (5000 - 10000 Reputation Level)Arem User rank is Second Lieutenant (5000 - 10000 Reputation Level)Arem User rank is Second Lieutenant (5000 - 10000 Reputation Level)Arem User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 7 h 41 m 27 sec
Reputation Power: 89
If you could possibly use gifs instead (with transparent background) that is much more reliable. It doesn't look to me like this would compromise your images.
__________________
Simple is beautiful.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Disappearing image in IE


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT