Solved

transparent background does not load properly in IE7

Posted on 2009-07-09
12
322 Views
Last Modified: 2012-06-27
@ http://tiny.cc/qtOll the transparent content box does not load or show properly as the content background in Internet Explorer 7. There is some space at the bottom. Why is that?
See screenshot
content-box-issue-ie7.jpg
0
Comment
Question by:rhandalthor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
12 Comments
 

Author Comment

by:rhandalthor
ID: 24814293
And when I press F11 to enlarge the screen the transparent background covers the entire content box again. Very strange indeed! Any ideas what's the matter?
0
 
LVL 42

Expert Comment

by:David S.
ID: 24817634
This issue stopped showing up for me, but here's something you can try:
*:first-child+html .overlay-blog {
  height: auto;
}

Open in new window

0
 

Author Comment

by:rhandalthor
ID: 24821512
Doesn't really seem to make a difference. On http://lab.imagewize.net/klarezaken/2009/07/06/wordpress-installeren/ the read more is even ignored in IE7 and the text overflows..
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rhandalthor
ID: 24821520
Oh read more is just ignored cross browser. Well never mind this issue..
0
 

Author Comment

by:rhandalthor
ID: 24821536
Hmm well transparent background still recoils on most pages and the blog. For the other readmore not showing in IE7 (It does show in IE7) I will open another ticket.
0
 

Author Comment

by:rhandalthor
ID: 24821587
I view the site in IE8 Compatibility moe. In regular IE8 mode all is fine. Maybe everything is fine in regular IE7 as well...?
0
 
LVL 42

Expert Comment

by:David S.
ID: 24833329
I looked at it again in IE7 and the issue did appear.

Try giving "div.content" min-height:1px
0
 

Author Comment

by:rhandalthor
ID: 24833356
I added the code, but I do not think it is working yet. Please have a look. This is really strange and something I hope to solve as soon as possible. Planned to go live tomorrow...
/* IE& bizarre transparent box issue */
*:first-child+html .overlay-blog {
  height: auto;
}
 
div.content {min-height:1px;}

Open in new window

0
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 24833379
Hmm... try this then:
html>body #trans-box-blog {
  height: 365px;
  padding: 0 10px;
}
#trans-box-blog>div.content {
  padding: 10px 0;
}

Open in new window

0
 

Author Comment

by:rhandalthor
ID: 24833411
Added the the code to ie-hacks.css (loaded by <!--[if gte IE 6]>) and... it seems to be working. I just double check it all and post back.
0
 

Author Comment

by:rhandalthor
ID: 24833427
Well it is working. Just a little paranoid that's all. Thanks a lot once again. Why it works now I have to get in a bit more later. But the main thing for now is that it works and that the lay-out seems to be the same or 99.9% the same cross-browser.
0
 
LVL 42

Expert Comment

by:David S.
ID: 24835384
You're welcome.

It seems that IE7 was miscalculating what height:100% should be on that absolutely positioned element because of the top and bottom padding on its parent element. I would assume it got confused because height:100% is calculated a little differently on absolutely positioned elements than other elements. On absolutely positioned elements the top and bottom padding should be added to the computed height of the containing block to get the height for the element.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question