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 April 27th, 2004, 04:29 PM
mpedrummer mpedrummer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 201 mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 15 h 31 m 49 sec
Reputation Power: 6
CSS and friggen IE

Code:
#container
{
	margin: 0;
	background-color: #F3F3F3;
	background-image: url("/images/hxside.gif");
	background-repeat: no-repeat;
}

#content_banner
{
	background-color: transparent;
	background-image: url("/images/topimg.jpg");
	background-repeat: repeat-x;
	margin-left: 170px;
	padding: 10px 0px;
	visibility: visible;
}

#content_banner h1
{
	border-bottom: 0px;
	text-align: center;
}

#content_left
{
	float: left;
	width: 150px;
	padding: 10px;
}


[edit]Just updated the CSS to the latest version.[/edit]

Firefox renders this like a champ. Looks exactly the way I want it to, etc. IE6 renders #content_left and #content_main correctly, but doesn't display the background-image for #content_banner. Actually, it basically seems to forget entirely to display the contents of #content_banner, although it positions the other elements of the page correctly, as if it had.

The really weird thing, though, is that if you scroll the page down, so that the banner leaves the viewport, and then scroll back up, there's the content, like nothing was ever wrong. Actually, it never displays the border-bottom, but everything else is peachy.

Any ideas? This is driving me crazy here.

MPEDrummer

Last edited by mpedrummer : April 28th, 2004 at 09:28 AM.

Reply With Quote
  #2  
Old April 27th, 2004, 07:34 PM
vbrtrmn's Avatar
vbrtrmn vbrtrmn is offline
4:04 Time Not Found
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jan 2004
Location: Northern Virginia
Posts: 1,892 vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 16 h 34 m 38 sec
Reputation Power: 177
Send a message via ICQ to vbrtrmn Send a message via AIM to vbrtrmn Send a message via MSN to vbrtrmn Send a message via Yahoo to vbrtrmn
Proper Syntax may help :P
background-image: url("/images/topimg.jpg");
__________________
------------- vbrtrmn --------------
i think i'm missing some vowels here
------------------------------------
---------- js.antinoc.net ----------
------------------------------------
--- The Two Types of Programmers ---

Motorcycles are cooler than computers!

Reply With Quote
  #3  
Old April 27th, 2004, 08:41 PM
mpedrummer mpedrummer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 201 mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 15 h 31 m 49 sec
Reputation Power: 6
Thanks, hadn't seen that.

However, it still does the same thing.

MPEDrummer

Reply With Quote
  #4  
Old April 27th, 2004, 10:03 PM
vbrtrmn's Avatar
vbrtrmn vbrtrmn is offline
4:04 Time Not Found
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jan 2004
Location: Northern Virginia
Posts: 1,892 vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level)vbrtrmn User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 16 h 34 m 38 sec
Reputation Power: 177
Send a message via ICQ to vbrtrmn Send a message via AIM to vbrtrmn Send a message via MSN to vbrtrmn Send a message via Yahoo to vbrtrmn
I'm not sure what the issue is, can you put a demo up anywhere?

Reply With Quote
  #5  
Old April 28th, 2004, 08:14 AM
mpedrummer mpedrummer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 201 mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 15 h 31 m 49 sec
Reputation Power: 6
I'll ask at work today if we can put it on the production server.

The problem seems to be a bug with IE, not a specific CSS issue...when the screen first renders the screen, it takes the space for the banner section properly, but then doesn't bother to display it. It's like visibility is set to hidden, but it's not.

If the user scrolls the page down, so that the banner area leaves the viewport, and then scrolls back up, there's the banner, like nothing was ever wrong.

It's 100% reproducable on multiple machines, all running IE6. If you sit there and refresh the page a bunch of times, it'll work every now and then.

MPEDrummer

Reply With Quote
  #6  
Old April 28th, 2004, 08:24 AM
bergner bergner is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 144 bergner User rank is Private First Class (20 - 50 Reputation Level)bergner User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 h 48 m 6 sec
Reputation Power: 5
Could possibly be width/height related

Try to set an explicit width and height for #container. If you then see the image IE is rendering #container as 0 x 0 pixels with your original setup. To fix it you could try setting width and height to auto. If the tag with id="container" is an inline tag you could try a block tag instead.

Reply With Quote
  #7  
Old April 28th, 2004, 09:24 AM
mpedrummer mpedrummer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 201 mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 15 h 31 m 49 sec
Reputation Power: 6
Well, I'm not allowed to put it on the production server, but here's some screenshots of the problem.

The only difference between the two screen shots is that I scrolled further down the page, and then back up. No refreshing, nothing.

MPEDrummer
Attached Images
File Type: gif partsearcher_ie_bad.gif (55.6 KB, 87 views)
File Type: gif partsearcher_ie_good.gif (78.7 KB, 79 views)

Reply With Quote
  #8  
Old April 28th, 2004, 05:14 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,555 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 7 h 49 m 53 sec
Reputation Power: 630
Let's try a couple of things. First, whack the style rules back to the minimum, eliminating redundancy. Then, if that doesn't do anything (likely), add a position rule. IE has bugs that sometime respond to an element being made "position: relative;" Maybe this element, maybe another. Don't change things willy-nilly though.
Code:
#content_banner {
    position: relative;
    background: url(/images/topimg.jpg) repeat-x;
    margin-left: 170px;
    padding: 10px 0px;
    }
hth

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

Ask a better question, get a better answer.

Reply With Quote
  #9  
Old April 29th, 2004, 12:21 PM
mpedrummer mpedrummer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 201 mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level)mpedrummer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 15 h 31 m 49 sec
Reputation Power: 6
Well, this makes no sense whatsoever, but I fixed it.

I moved the declaration of background-color from #container to body. Now it works.

My kingdom for standards...

MPEDrummer

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS and friggen 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 4 hosted by Hostway