Actually scratch that, I've solved the error found by Browser Checker - however I am still having the IE7 stylesheet issue. The default stylesheet seems to load everytime...
Last edited by andidas311; 06-05-2009 at 09:34 AM.
The conditional doesn't stop the page from loading the standard stylesheet, but it should also load the IE stylesheet when in IE7 since IE7 is the only one that should see the command to do that. Is it loading both?
I've conducted a few experiments and found that yes IE7 is calling the IE7 style sheet, BUT, for some reason, any adjustments I make to the margin/padding etc. in the non-IE7stylesheet are also appearing when previewed in IE7
How can that be? is it reading both stylesheets at once??
I guess that's what I was trying to say, yes. The IE 7 conditional isn't tell the page to use the ie7 stylesheet instead. It's telling IE7, and IE7 only, to use the ie7 stylesheet alongside your main stylesheet. It is definitely possible for IE7 to still respect the main stylesheet over your IE7 one, so you may need to either be more specific about what style you are trying to feed to ie7. I think you're having more of an issue with your style than with including the file, as it looks like you're doing that fine.
Ok I'm going to give up hacking the site with two style sheets and instead find out what's causing the problem, solve it using just one stylesheet.
Basically I have a Flash nav menu which is being positioned FF and Safari too high, but just right in IE. My plan was to apply a margin to the default stylesheet and no margin atall to the IE7 sheet, but seeing as that isn't working, I've got solve why this nav menu is being positioned differently in all the browsers.
Do you know anything about flash content positioning?
Do you have some way of showing the problem? IE has a tendency to add space wherever it pleases and it might actually be that IE is adding too much space, while FF is doing as you have instructed, but the extra space is what you need... But either way, we would really need to be able to see what is going on.
Ok yeah I tried swapping float:left out for clear:both, still nothing happened - but as I did that I noticed a clear:both property for the rule immediately above, the one containing the orange tagline - but no specified height. By sticking the height measurement in with those extra 7px, everything fits neatly in all browsers.
Bookmarks