Team:Hong Kong HKU/people

From 2013.igem.org

(Difference between revisions)
Line 16: Line 16:
<div id="wrapper">
<div id="wrapper">
<div id="content1">
<div id="content1">
-
<div id="wrap">
+
<img src="https://2013.igem.org/File:Fallpeng.jpg" width=50px height=60px>
-
 
+
{
-
  <div class="left">abc</div>
+
opacity:0.4;
-
  <div class="center">efg</div>
+
filter:alpha(opacity=40); /* For IE8 and earlier */
-
 
+
}
-
 
+
img:hover
-
  <div class="clearBoth"></div>
+
{
-
 
+
opacity:1.0;
-
</div>
+
filter:alpha(opacity=100); /* For IE8 and earlier */
 +
}
<br>
<br>
Line 38: Line 39:
</div>
</div>
</div>
</div>
-
<style type="text/css">
 
-
#wrap {
 
-
width: auto;
 
-
position: relative;
 
-
}
 
-
.left, .right {
 
-
width: 50px; //or use 30%
 
-
float: left;
 
-
}
 
-
 
-
.center {
 
-
float: left;
 
-
width: 120px; //or use 60%
 
-
 
-
position: relative;
 
-
}
 
-
 
-
.clearBoth {
 
-
clear: both;
 
-
}
 
-
</style>
 
</body>
</body>
</html>
</html>

Revision as of 06:43, 4 September 2013


{ opacity:0.4; filter:alpha(opacity=40); /* For IE8 and earlier */ } img:hover { opacity:1.0; filter:alpha(opacity=100); /* For IE8 and earlier */ }