97 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Located in Finland
+4 more
Smuliii says

So when page is loaded div#featured moves 10 pixel to left and I don’t have any idea why. And this happens only with IE7 and even with JS disabled so it’s must be CSS problem.

If you have IETester you can see that by yourself but here is also screenshot.

http://demo.knarsku.com/news-flash

CSS part: http://pastebin.com/EHHqQKG1

Any suggestion?

443 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
SplitV says

I have not looked at your code at all. But if it is in just an IE7 issue then why not just use a conditional comment to only adjust the div back for IE7 .

For a IE7 specific stylesheet
<!--[if IE 7]>
        <link rel="stylesheet" href="ie7_specific_stylesheet.css" />    
<![endif]-->    
27 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
olziinaa says

If you have ie6 problem …

<!—[if IE 6 ]> #nav{ padding-left:0px; } input.submit{ background: url(images/searchform-submit-btn.png) no-repeat 0 0 transparent; border:none; width:39px; height:35px; margin-left:8px; display:block; position:absolute; cursor:pointer; float:right;} DD_belatedPNG.fix(‘img, .box, .text-caption, .left-side, .logo,.nav-element’); <![endif]—>

if you have ie7 problem …

<!—[if IE 7 ]> #nav{ padding-left:0px; } input.submit{ background: url(images/searchform-submit-btn.png) no-repeat 0 0 transparent; border:none; width:39px; height:35px; margin-left:8px; display:block; position:absolute; cursor:pointer; float:right; margin-top:0px;} <![endif]—>

97 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Located in Finland
+4 more
Smuliii says

Maybe I didn’t explain this enough. If you were looked source code you would see that there is ie7-fix.css but I can’t use it to this problem because it doesn’t help me now.

I could put even margin-left: 1000px; put when page is fully loaded IE7 will still show it like this. I’ve also tried adjust this with jQuery too but without any difference.

97 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Located in Finland
+4 more
Smuliii says

Okay I solved this. I added position: static; to ie7 and problem solved!

21 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Located in United States
Wex says

Seems like a pretty dirty fix. I’d use a IE7 CSS selector just to make sure it doesn’t effect any other browser:

* html #nav { position: static; }

Change #nav to whatever the actual element is, obviously.

by
by
by
by
by
by