Hey guys, I’m trying to figure out why my banner ribbon has an irritating (what looks like) 1px gutter showing up in Explorer 8. It positions correctly in Firefox and Sea Monkey. Please tell me I’m not in Quirks mode.
[EDIT]
I just realized that the top is completely off in IEx8, as well. What the . . .
Paul, Ronpat, thanks for helping me with this. I don’t have a place to upload the html (it’s going to be an auction listing on EBay, hence the INLINE coding). I’m attaching a screenshot if that’s any help? The guttering is fixed and persists even when narrowing the monitor viewport. I also included a shot of the version number. Apologies for the size; I’m on a 1200 X 1900 widescreen monitor that lives in porTraiT mode.
[LIST=1]
[]The guttering also shows up in Dreamweaver 8!
[]I cleared my cache and loaded/viewed the identical coding under a new file name (made no difference).[/LIST]
s
The position of the ribbon looks like your browser is in compatibility mode, which is like IE7 mode. Change that to IE8 standards mode and it should render correctly.
The arabesques background does not show up in IE8 or FF for me because of the following code items. If these are in you original code, delete them. (Since the background image appears in your screen shot, maybe they were inserted in the HTML code by vBulletin.)
The zoom:1.0 gives the element in ie7 haslayout which it needs when it contains absolute elements and the position:relative creates a solid stacking context for the absolute element rather than the viewpoint which you were using (as you don’t know what padding/margins the viewport may have in various browsers if you haven’t reset them).
It was definitely Explorer 8’s Compatibility Mode. You guys are brilliant (I didn’t even know there was such a feature in Explorer ). Ronpat, that tag was indeed inserted by vBulletin.
I have a new problem however, and I suspect it relates to the code-hostile IFRAME that EBay’s auctions are shoved into. So first, a useful link that I have used to test how auction scripts will display in EBay. Don’t ask me how I found it, but here (for the benefit of the Human Race) it is:
When you use this guy’s testing box, be sure to only include the interior code of your listing (ie. strip out all BODY, HEAD etc. tags since they interfere with the IFRAME your auction code is being placed into) -and- make sure you’ve turned off Explorer 8’s Compatibility Mode. Now, when I add Paul’s excellent IEx Durability code, and open the file in Explorer 8 it looks flawless.
– into the EBay Code Tester box, and you’ll get a warning about “position: absolute” . . . and the white padding around the two centered images disappears.
This is a somewhat long-winded way of asking if there is any IFRAME hack for achieving an IMG equivalency to position: absolute . . . without using position: absolute? Thanks again guys.
Oh and, it goes without saying: I could of course just photoshop the white borders around these images . . . but it seems so inelegant! And it’s also a tacit surrender to EBay that I’d have to perform this graphics hack every time I ever wanted to list any auction pics with a border. Not!
These styles [B]may[/B] result in site interference if not properly used:
position:absolute
The position:absolute I gave you is properly used and is contained by the position:relative parent and therefore will not interfere with the site (unless ebay is stripping all positioning rules from your code).
I don’t see a difference between the output on that testing page and when the code is run standalone so I’m not sure what white space is supposed to be missing?
Avoiding using position:absolute is not impossible but very very awkward as you would have to rely on negative margins and floats and would be prone to misplacement if all things were not equal.