/    Sign up×
Community /Pin to ProfileBookmark

Background works in FF but not in IE

The background behind the menu in [URL=”http://christopherstable.com/test”]this site[/URL] displays properly in FF3 but not in IE. My css seems to be valid. Maybe an IE hack issue? I would appreciate some help in fixing it.

Thanks

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@savvykmsNov 02.2010 — I found this at /test/SpryAssets/SpryMenuBarHorizontal.css on your server. It is used in the page, it seems.
[CODE]UL.MenuBarHorizontal LI.MenuBarItemIE {
display : inline;
background : #fff;
float : left
}[/CODE]


By the looks of it, your script API checks to see if the client is IE and explicitly defines a white background color, which is the only visible difference I can see about the menus between IE8 and FF3.6.12.

IE8 has a useful feature: Tools->Developer Tools (Shortcut Key: F12)

I used that to figure out the weird issue. Disabling the CSS for that code block made the two browsers look the same, as far as menus go.
Copy linkTweet thisAlerts:
@young77478authorNov 02.2010 — Thanks savvykms - I tried commenting out that code - same result. I also tried adding a background-image to the code (see below) and still see white menu background on IE8. This is pretty crazy because I copied the /SpryAssets folder to /test from the root folder with no mods. Same with main.css so its not apparent why the menu in /test should display differently than in the main site.

{

ul.MenuBarHorizontal li.MenuBarItemIE

{

display: inline;

float: left;

/* background: #FFF; */

background-image:url(../images/bkgd2.gif);

background-repeat: repeat-x;

}

}
Copy linkTweet thisAlerts:
@young77478authorNov 02.2010 — Thanks for your suggestions - it got me thinking. Solved the problem by commenting out all background-image code in the spry css file. Cascading stylesheets can give unexpected results. The original code for spry css works fine in the live site, but would not work on the test site.
×

Success!

Help @young77478 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...