Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

Thursday, December 30, 2010

Fix PNG Transparent on IE6 by CSS.

Eaxmple.
<span style="width:247;height:216px;display:inline-block;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png');">
<img style="filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" src="test.png" width="247" height="216" border="0" >
</span>


Reference : http://www.memo8.com/toolkits/archives/81

Held in the middle of next Flash Page Vertical.

Example Such as flash high 1,000 px wide 580 px.

Values must be determined by the width / height of the Flash.
- Width equal to the width of the Flash.
- Height equal to the height of the Flash.
- Margin-left half of the width of Flash and then add a minus sign (-) in prefix.
- Margin-top half of the height of the Flash and then add a minus sign (-) in prefix.

CSS
#container_flash{
position: absolute; width: 1000px; height: 580px; left: 50%; margin-left: -500px; top: 50%; margin-top: -290px;
}

HTML
<div id="container_flash"> Flash Here! </div>



Using CSS to set the height of the DIV height: 100%

Try adding overflow: hidden;

Example

.example{
width:500px;
height: 100%;
overflow:hidden;
}